首页 > 学院 > 开发设计 > 正文

ListView填坑

2019-11-06 09:41:05
字体:
来源:转载
供稿:网友

ListView填坑


android.widget.HeaderViewListAdapter.isEnabled(HeaderViewListAdapter.java:164)


java.lang.IndexOutOfBoundsException: Index: 1, Size: 1at java.util.ArrayList.get(ArrayList.java:411)at android.widget.HeaderViewListAdapter.isEnabled(HeaderViewListAdapter.java:164)at android.widget.ListView.dispatchDraw(ListView.java:3417)at android.view.View.draw(View.java:17073)at android.widget.AbsListView.draw(AbsListView.java:4298)at android.view.View.updateDisplayListIfDirty(View.java:16052)at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3748)at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3728)at android.view.View.updateDisplayListIfDirty(View.java:16015)at android.view.View.draw(View.java:16836)at android.view.ViewGroup.drawChild(ViewGroup.java:3764)at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)at android.view.View.updateDisplayListIfDirty(View.java:16047)at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3748)at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3728)at android.view.View.updateDisplayListIfDirty(View.java:16015)at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3748)at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3728)at android.view.View.updateDisplayListIfDirty(View.java:16015)at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3748)at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3728)at android.view.View.updateDisplayListIfDirty(View.java:16015)at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3748)at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3728)at android.view.View.updateDisplayListIfDirty(View.java:16015)at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3748)at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3728)at android.view.View.updateDisplayListIfDirty(View.java:16015)at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3748)at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3728)at android.view.View.updateDisplayListIfDirty(View.java:16015)at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3748)at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3728)at android.view.View.updateDisplayListIfDirty(View.java:16015)不使用下拉刷新的headView, footerView当adapter的数据被全部clean时,使用adapter.notifyDataSetInvalidated();在加入新的数据后,使用adapter.notifyDataSetChanged();
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表