Android .xml files: Why do predefined colors not work for me?

后端 未结 6 1746
慢半拍i
慢半拍i 2020-12-06 09:03

When I look at misc. Android tutorials and examples when it comes to specifying colors I very often see constants like @color/red or @color/black e

6条回答
  •  误落风尘
    2020-12-06 09:49

    If you want to use the colors pre-defined in the Android platform, the syntax is @android:color/white. The "android:" at the beginning indicates that the resource is not part of your application.

提交回复
热议问题