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

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

I mean something like:

Error!
12条回答
  •  半阙折子戏
    2021-02-07 12:28

    No this is not possible you have to specify that in your layout. But you can put the color in your colors.xml.

    colors.xml

    #abc123
    

    your_layout.xml

    
    

提交回复
热议问题