OK,
it is at least one year post but the answer didn't come yet.
Here is how
that XML (from
plusminus) was supposed to be used in source code:
Using java Syntax Highlighting
ColorStateList cl = null;
try {
XmlResourceParser xpp = getResources().getXml(R.color.selector_txt);
cl = ColorStateList.createFromXml(getResources(), xpp);
} catch (Exception e) {}
Parsed in 0.014 seconds, using
GeSHi 1.0.8.4
Obviously, it is res/color/selector_txt.xml
To use it in
other XML is even easier:
Using xml Syntax Highlighting
android:textColor="@color/selector_txt"
Parsed in 0.000 seconds, using
GeSHi 1.0.8.4