Code example for RelativeLayout

Methods: getBottom

0
 
		resetHeader(); 
 
		// If refresh view is visible when loading completes, scroll down to 
		// the next item. 
		if (mRefreshView.getBottom() > 0) {
			invalidateViews();
			setSelection(1);
		} 
	} 
 
	/** 
	 * Invoked when the refresh view is clicked on. This is mainly used when 
	 * there's only a few items in the list and it's not possible to drag the 
	 * list. 
	 */ 
	private class OnClickRefreshListener implements OnClickListener {
 
		public void onClick(View v) {
			if (mRefreshState != REFRESHING) {
				prepareForRefresh();