String resource for href in string resource

114 views Asked by At

I have string resource with href like this:

<string name="name">Some text <a href="http://SUBDOMAIN.domain.com/">Click here</a>. (SUBDOMAIN here is placeholder to show case)

I generated in SUBDOMAIN with product flavors:

productFlavors {
    dev {
        resValue "string", "sub_domain", "test."
    }
    ...
}

I have it in gradleResValues:<string name="sub_domain" translatable="false">test.</string>

I can not figure out how to use this sub_domain in my resource with href

0

There are 0 answers