解决在练习gallery时编译出错的问题
在练习时遇到编译器发出 android.R.styleable 不能找到的错误. (android.R.styleable cannot be resolved),在网上找了半天,然后分析其他的例子终于解决了,其实就是添加attars.xml到 res/values文件夹下,下面是这个文件的内容
<resources>
<declare-styleable name="Gallery">
<attr name="android:galleryItemBackground">
</attr>
</declare-styleable>
</resources>
,附上我测试的项目,希望对遇到同样问题的人有帮助。