- 启动app后显示为空白页。
原因:Activity中实现了错误的onCreate方法,应为一个Bundle参数的onCreate。
解决:修改方法为指定方法。 - Fragment 中获取控件时返回空。
原因:使用getActivity()方法调用findViewById()。
解决:用onCreateView中返回的View对象调用findViewById()。 - pulltorefresh不显示List
原因:ListView的Height为Wrap
解决:改为Match - unreachable statement
….看一下是不是写在return后面了,没话讲了,真的。
bug 总结
最新推荐文章于 2018-12-30 09:34:42 发布