Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 733 Bytes

File metadata and controls

23 lines (20 loc) · 733 Bytes

Android-PullToLoadMoreListView

Usage:

        listView = (PullToLoadMoreListView) findViewById(...);
        listView.setPullView(loadView);
        listView.setAdapter(...);
        listView.setOnPullListener(new PullToLoadMoreListView.OnPullListener() {
            @Override
            public void onPull(int distance, int total) {
                // Callback for the touch event
            }

            @Override
            public void onStartLoading() {
                // Load new data
                
                // After loading data, notify the ListView how many items have been loaded,
                // then scroll to right position.
                listView.loaded(5);
            }
        });