Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
2014-06-25 09:24
561 查看
今天在做自定义ViewGroup中,出现了一下错误提示
Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
具体解决方法:
在eclipse error log中查看错误具体出现在哪一行,然后将
if (isInEditMode()) { return; }加入即可。
这种方法同样适用于 xml布局文件中null错误。
java.lang.NullPointerException
Exception details are logged in Window > Show View > Error Log
Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
具体解决方法:
在eclipse error log中查看错误具体出现在哪一行,然后将
if (isInEditMode()) { return; }加入即可。
这种方法同样适用于 xml布局文件中null错误。
java.lang.NullPointerException
Exception details are logged in Window > Show View > Error Log
相关文章推荐
- Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
- Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE
- Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
- 使用eclipse编程出现Use View.isInEditMode() in your custom views to skip code when shown in Eclipse解决方法
- Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
- Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
- Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
- Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
- 【Android笔记】引用第三方自定义控件出错:Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
- Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE
- Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE
- How to use isInEditMode() to see layout with custom View in the editor
- How to use another indicator in your code?
- XAF How to enable LayoutView mode in the GridControl in List Views
- Use Custom Classes in Your LotusScript Code - Part
- Units Problem: How to read text size as custom attr from xml and set it to TextView in java code
- Units Problem: How to read text size as custom attr from xml and set it to TextView in java code
- Using Bytecode Outline to View Java bytecode in Eclipse
- Code view is missing in SharePoint Designer Beta 2 when you try to edit a WSS v3 site.
- Easiest way to use Qhull library in your code.