Code example for AbsListView

Methods: getChildAt, getCount, getFirstVisiblePosition

0
		} 
		return false; 
	} 
 
	private boolean isFirstItemVisible() { 
		if (this.adapterView.getCount() == 0) {
			return true; 
		} else if (adapterView.getFirstVisiblePosition() == 0) {
			return adapterView.getChildAt(0).getTop() >= adapterView.getTop();
		} else { 
			return false; 
		} 
	} 
 
	private boolean isLastItemVisible() { 
		final int count = this.adapterView.getCount();
		if (count == 0) {
			return true; 
		} else if (adapterView.getLastVisiblePosition() == count - 1) {
			return true; 
		} else {