Search code examples
androidclocktextcolor

changing text color for android app


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


Solution

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