标签:listview
listview.setOnScrollListener(new OnScrollListener(){ @Override public void onScrollStateChanged(AbsListView view, int scrollState){ // 当不滚动时 if (scrollState == OnScrollListener.SCROLL_STATE_IDLE) { // 判断是否滚动到底部 if (view.getLastVisiblePosition() == view.getCount() - 1) { //加载更多功能的代码 } } } });
标签:listview
原文地址:http://luoguoxin.blog.51cto.com/8845916/1720474