开发者

changing text color for android app [closed]

开发者 https://www.devze.com 2023-02-17 03:13 出处:网络
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 9 years ago.

I currently have an app that displays the time. I want to change the text to white so i have

<DigitalClock开发者_运维知识库 android:textColor = "@androidcolor/white">

for some reason when i put this line in the XML code, my Graphical layout shows the time white but i get an error saying "Error: No resource found that matches the given name (at 'textColor' with value '@androidcolor/white"

Any suggestions are appreciated


You probably meant to write @android:color/white?

0

精彩评论

暂无评论...
验证码 换一张
取 消