setting textColor in TextView in layout/main.xml main layout file not referencing colors.xml file. (It wants a #RRGGBB instead of @color/text_color)

前端 未结 4 1641
一向
一向 2020-12-14 00:10

I\'m trying to set some general colors for a program I\'m writing. I created a colors.xml file and am trying to directly reference the colors from the layout.xml file. I bel

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-14 00:41

    A variation using just standard color code:

    android:textColor="#ff0000"
    

提交回复
热议问题