Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set an OnScrollListener() #32

Open
silviahisham opened this issue Oct 29, 2015 · 1 comment
Open

Can't set an OnScrollListener() #32

silviahisham opened this issue Oct 29, 2015 · 1 comment

Comments

@silviahisham
Copy link

I need to set OnScrollListener for PullToZoomListViewEx to be able to endlessly scroll the list and get results.

@revisedagain
Copy link

try this

listView.getPullRootView().setOnScrollListener(new AbsListView.OnScrollListener() {
            @Override
            public void onScrollStateChanged(AbsListView view,
                                             int scrollState) { // TODO Auto-generated method stub

            }

            @Override
            public void onScroll(AbsListView view, int firstVisibleItem,
                                 int visibleItemCount, int totalItemCount) {


                int lastInScreen = firstVisibleItem + visibleItemCount;
                if (lastInScreen == totalItemCount) {
                    System.out.println("the end");


                } else {

                }

            }
        });

where listView is the name of your listview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants