- 博客(3)
- 资源 (2)
- 收藏
- 关注
原创 Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE
今天 在群里有朋友问到,为什么layout xml 在IDE预览模式下会报出异常,比如java.lang.NullPoninterException这种特别是在使用第三方的自定义控件情况下出现。标题正是IDE提示给出的解决方案,Use View.isInEditMode() in your custom views to skip code or show sample data
2015-09-15 17:50:36 5687 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人