0

我在 listview 的 onScrollStateChanged 事件中编写代码。但是当滚动快速变化时,强制关闭。

public void onScrollStateChanged(AbsListView arg0, int arg1) {
try {
int getCur = (lstName.getLastVisiblePosition() + 1) % maxName;
if (myCR != null) {
if (getCur == 0) {
Parcelable state = lstName.onSaveInstanceState();
fillList();

lstName.onRestoreInstanceState(state);
}
}
} catch (Exception e) {
}
}

完成Logcat:

http://up.persianscript.ir/uploads/137181658700741.zip
4

0 回答 0