I have a populated ListView with custom adapter and my objective is to download new content when user scrolls to the end of it ? How to achieve it ? I think it should be something in here :
mListView.setOnScrollListener(new OnScrollListener() {
@Override
public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
// TODO Auto-generated method stub
}
@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
// TODO Auto-generated method stub
}
});
but I don't know what exactly to put there.Please help.