2017/5/3
- adapter 报NullPointerException: Attempt to invoke virtual method 'int android.view.View.getImportantForAccessibility()' on a null object reference
解决方案
item的时候没有返回view
- Error:java.lang.RuntimeException: Some file crunching failed, see logs for details
> Error: java.lang.RuntimeException: Some file crunching failed, see logs for details
可能的解决方案一:
将图片中的png 改为jpg(某些原为jpg的图片被改为png)
http://blog.csdn.net/u013443865/article/details/51232586(参考博客)
- java.lang.RuntimeException: stop failed.(录音出错)
解决方案:
1、在onstop之前加mRecorder.setOnErrorListener(null);
mRecorder.setOnInfoListener(null);
mRecorder.setPreviewDisplay(null);
2、在MediaRecorder录音不足一秒时,需要延迟一秒
- //onTouch方法屏蔽onclick方法
注:
设置控件的onlcickable = false 不行
- //tablayout+viewpage+fragment 卡顿原因
- //自定义view
要求 自定义view中的构造方法必须要都继承
- //连续设置两次popupwindows弹出且设置背景变暗注意点
- 在ViewPager 外面嵌套ScrollView 时导致ViewPager 中内容不显示
解决的办法是在ScrollView 标签下加入 Android:fillViewport="true" ,顾名思义,这个属性允许 ScrollView中的组件去充满它。