首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

解决在练习gallery时编译出错的有关问题

2012-09-14 
解决在练习gallery时编译出错的问题在练习时遇到编译器发出 android.R.styleable 不能找到的错误. (androi

解决在练习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>
,附上我测试的项目,希望对遇到同样问题的人有帮助。

热点排行