java - How do I use my own colors in android XML -
I have an XML file created in the Res / value folder and try to reference it by typing it
Android: Background = "@color / red"
And it does not work.
I do not even have the advantage of putting this file in the with: <: / P> Then in a layout xml: folder .
color view resources for example,
res / values In the / whatever.xml @color / name , not
@color / name
& lt; Color name = "your_color_name" & gt; # 12345678 & lt; / Color & gt;
android: background = "@ color / your_color_name" < / Html>
Comments
Post a Comment