标签:
错误信息:只截取了一部分
java.lang.NullPointerException at android.graphics.Canvas_Delegate.restoreTo(Canvas_Delegate.java:1175) at android.graphics.Canvas_Delegate.restoreToCount(Canvas_Delegate.java:268) at android.graphics.Canvas.restoreToCount(Canvas.java) at android.view.View.draw(View.java:14383) at android.view.ViewGroup.drawChild(ViewGroup.java:3103) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940) at android.view.View.draw(View.java:14348) at android.view.ViewGroup.drawChild(ViewGroup.java:3103) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940) at android.view.View.draw(View.java:14348) at android.view.ViewGroup.drawChild(ViewGroup.java:3103) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
如果再Error Log 中如果看到xml文件报空指针,而且该xml里并没有什么错误,那么很有可能原因是 该xml文件里有自定义控件,然后eclipse不予显示,所以出的问题,eclipse有的时候不太好用!!
Android中res中的Layout布局文件报空指针问题layout_galazuser_center.xml: java.lang.NullPointerException
标签:
原文地址:http://www.cnblogs.com/jss4j/p/4451022.html