开发者

how to use color in arrays.xml file

开发者 https://www.devze.com 2023-02-20 20:11 出处:网络
I have items in my arrays.xml file, and I want only \"Bravelle\", \"Cetrotide\", and \"Clomid\" to use a blue color.How can I get this?

I have items in my arrays.xml file, and I want only "Bravelle", "Cetrotide", and "Clomid" to use a blue color. How can I get this?

<string-array name="medication_name">
    <item>Bravelle<sup>&#xae;</sup> (urofollitropin)</item>
    <item>Cetrotide<sup>&#xae;</sup> (cetrorelix acetate)</item>
    <item>Clomid<sup>&#x开发者_StackOverflow中文版ae;</sup> (clomiphene citrate)</item>
</string-array>

Thanks in advance.


Try adding <font color="#0000FF"> and the corresponding </font> tag.


Try this:

<string-array name="medication_name">
    <item>Bravelle<font fgcolor="#ffff0000">red</font><sup>&#xae;</sup> (urofollitropin)</item>
    <item>Cetrotide<font fgcolor="#ffff0000">red</font><sup>&#xae;</sup> (cetrorelix acetate)</item>
    <item>Clomid<font fgcolor="#ffff0000">red</font><sup>&#xae;</sup> (clomiphene citrate)</item>
</string-array>
0

精彩评论

暂无评论...
验证码 换一张
取 消