我有一个位于direcotry values /下的resources.xml文件,那就是
/values/resources.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="TheMissingTabWidget">
<attr name="android:divider" />
</declare-styleable>
</resources>
Run Code Online (Sandbox Code Playgroud)
在我的java代码中,当我尝试访问此资源时R.styleable.TheMissingTabWidget,eclipse抱怨无法解析styleable或者不是字段.为什么?为什么我无法访问此资源?(我正在使用android 2.1更新).
android android-widget android-manifest android-emulator android-layout