首页 > 其他 > 详细

ListView random IndexOutOfBoundsException on Froyo

时间:2014-12-25 14:24:47      阅读:292      评论:0      收藏:0      [点我收藏+]

http://stackoverflow.com/questions/8431342/listview-random-indexoutofboundsexception-on-froyo

今天遇到个

    AndroidRuntime  E  java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
    AndroidRuntime  E    at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257)
类似的问题,stackoverflow上是如此解决的:
class MyFixedListView extends ListView {
    @Override
    protected void dispatchDraw(Canvas canvas) {
        try {
            super.dispatchDraw(canvas);
        } catch (IndexOutOfBoundsException e) {
            // samsung error
        }
    }
}

ListView random IndexOutOfBoundsException on Froyo

原文:http://www.cnblogs.com/androidsuperman/p/4184447.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!