我正在使用这个例子:http://android-er.blogspot.com/2012/07/implement-gallery-like.html,但在片段中,我正在为onPause()获得一个SuperNotCalledException,我使用了调试器,当我将图像添加到线性视图时,它失败了,不知道为什么,如果有人能帮助我,我会非常感激的:
File[]文件= targetDirector.listFiles();
for (File file : files){
myGallery.addView(insertPhoto(file.getAbsolutePath()));
} 发布于 2014-11-16 14:34:21
确保在onPause()方法中调用super.onPause()。
https://stackoverflow.com/questions/26952625
复制相似问题