I have a resources.xml file located under direcotry values/ , That's
/values/resources.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="TheMissingTabWidget">
<attr name="android:divider" />
</declare-styleable>
</resources>
In my java code, when I try to access this resource by R.styleable.TheMissingTabWidget
, eclipse complain that styleable cannot be resolved or is not a field. Why? Why I can not access this resource? (I am using android 2.1-updated).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…