2 u011404495 u011404495 于 2015.06.24 21:38 提问

eclipse开发android中xml布局视图是灰色的

图片说明
提示的错误是
Exception raised during rendering: Could not resolve resource value: 0x7F02000F.
Exception details are logged in Window > Show View > Error Log

android.content.res.Resources$NotFoundException: Could not resolve resource value: 0x7F02000F.
at android.content.res.BridgeResources.throwException(BridgeResources.java:693)
at android.content.res.BridgeResources.getDrawable(BridgeResources.java:164)
at net.micode.fileexplorer.CategoryBar.getDrawable(CategoryBar.java:149)
at net.micode.fileexplorer.CategoryBar.onDraw(CategoryBar.java:90)
at android.view.View.draw(View.java:14433)
at android.view.View.draw(View.java:14318)
at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
at android.view.View.draw(View.java:14436)
at android.view.View.draw(View.java:14318)
at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
at android.view.View.draw(View.java:14316)
at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
at android.view.View.draw(View.java:14316)
at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
at android.view.View.draw(View.java:14316)
at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
at android.view.View.draw(View.java:14316)
at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
at android.view.View.draw(View.java:14436)
at android.view.View.draw(View.java:14318)
at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
at android.view.View.draw(View.java:14436)

3个回答

sinat_26742303
sinat_26742303   2015.06.25 09:20

xml里面有没有设置背景色
android:background

Arnold9009
Arnold9009   2015.06.25 09:42

要获取的resource不存在
要么是资源确实不存在,要么就是修改的时候,导致eclipse自动生成的R类出错了

crazy1235
crazy1235   Ds   Rxr 2015.06.28 14:02

因为你的一些resource找不到。,,。。自己检查一下代码吧

Csdn user default icon
上传中...
上传图片
插入图片