ListView加载

- 编辑:小昭 -

ListView加载

listview.addHeaderView(titleView);//添加头部
listview.addFooterView(footView);//添加尾部

ls.setOnScrollListener(new AbsListView.OnScrollListener() {


    @Override
    public void onScrollStateChanged(AbsListView absListView, int i) {
        if(i== AbsListView.OnScrollListener.SCROLL_STATE_FLING&&i3==spq.getCount()-1) {
           进行添加操作



        }
    }

    @Override
    public void onScroll(AbsListView absListView, int i, int i1, int i2) {
        i3 = i + i1 - 1 - 1;
    }
});

你会喜欢下面的文章? You'll like the following article.