Code example for RelativeLayout

Methods: getHeight

0
				startAnimation(bounceAnimation);
	} 
 
	private void resetHeader(){ 
		if(getFirstVisiblePosition() > 0){ 
			setHeaderPadding(-header.getHeight());
			setState(State.PULL_TO_REFRESH);
			return; 
		} 
 
		if(getAnimation() != null && !getAnimation().hasEnded()){ 
			bounceBackHeader = true;
		}else{ 
			bounceBackHeader(); 
		} 
	} 
 
	private void setUiRefreshing(){ 
		spinner.setVisibility(View.VISIBLE);
		image.clearAnimation();
		image.setVisibility(View.INVISIBLE);