java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

今天写练习的时候出现一个bug,就是下拉列表切换然后下拉刷新出现闪退,报错是java.lang.IndexOutOfBoundsException: Index: 0, Size: 0,然后查了一堆资料最后发现我adaptre.getData().clear();以后没有刷新adaptre.notifyDataSetChanged();,导致越界
相关文章
相关标签/搜索