I use ListActivity , and implements OnScrollListener, and have my code
just like below
@Override
public void onScroll(AbsListView view, int firstVisibleItem, int
visibleItemCount, int totalItemCount) {
Log.d(TAG,"onScroll");
Toast.makeText(this, totalItemCount+"", Toast.LENGTH_SHORT).show();
}
@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
Log.d(TAG,"onScrollStateChanged");
Toast.makeText(this, "onScrollStateChanged",
Toast.LENGTH_SHORT).show();
}
every time I scroll the listview, and ddms output "onScroll"
right .but when I scroll to the end and still scroll. It seems the
ddms should ouput onScrollStateChanged and have a toast, but it
doesn't. why?
--