Code example for AbsListView

Methods: getAdapter, getCount, getLastVisiblePosition

0
	} 
 
	public void onScrollStateChanged(AbsListView view, int scrollState) {
		// TODO Auto-generated method stub 
		if (scrollState == OnScrollListener.SCROLL_STATE_IDLE) {
			if (view.getLastVisiblePosition() == view.getCount() - 1) {
				ArrayList<FeedItem> newFeedItemList = getRSSFeed();
				feedList.addAll(newFeedItemList);
				((BaseAdapter) view.getAdapter()).notifyDataSetChanged();
			} 
		} 
	} 
 
}