Set Text Color for textView Android

后端 未结 8 1862
梦谈多话
梦谈多话 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:58

    You need to create a set of styles in your xml (regularly in res/values/styles.xml)

    
    
        #eaeaea
        #00abd7
        #666666
    
    

    In the layout files you can call to the colors or styles:

    android:textColor="@color/titlecolor"
    

    Checkout some examples:

    http://developer.android.com/guide/topics/ui/themes.html

提交回复
热议问题