Set Text Color for textView Android

后端 未结 8 1855
梦谈多话
梦谈多话 2021-02-06 03:41

In the string.xml file i use the following tag

 \"#0000ff\"

If I use

 textview         


        
8条回答
  •  星月不相逢
    2021-02-06 03:55

    Define colors in colors.xml file like that:

      
           #0000ff
      
    

    Then use color whatever you like in your code using: R.color.CodeColor

    Good luck!

提交回复
热议问题