【发布时间】:2013-07-01 14:44:07
【问题描述】:
我想更改value/string.xml 中的数组中的文本颜色,而不是Layout,但也不是所有文本,而是其中的一部分
示例:
<string-array name="list">'
// like Cafe in example i want it red and bold but not other text.`
<item>Welcome to Cafe</item>'
// and shop to be purple
<item>The new online Shop!</item>'
//in java i would set
welcome.setText(*and one of the array item*);
【问题讨论】: