开发者

how to use color in arrays.xml file

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜