Is it possible to set the color of a string directly in string.xml?

前端 未结 12 1044
轮回少年
轮回少年 2021-02-07 12:17

I mean something like:

Error!
12条回答
  •  花落未央
    2021-02-07 12:50

    1. Create a colour in colors.xml file in values

        #ff0000
      
    2. In your strings.xml do something like

        The next word is red but that is all
      

    I found I could not use the hex code directly in strings.xml

提交回复
热议问题