Code example for View

Methods: getVisibility, setVisibility, startAnimation

0
			reset(true); 
		} 
	} 
 
	void showHeaderView() { 
		if (mHeaderView.getVisibility() != View.VISIBLE) {
			// Show Header 
			if (mHeaderInAnimation != null) {
				// AnimationListener will call HeaderViewListener 
				mHeaderView.startAnimation(mHeaderInAnimation);
			} else { 
				// Call HeaderViewListener now as we have no animation 
				if (mHeaderViewListener != null) {
					mHeaderViewListener.onStateChanged(mHeaderView,
							HeaderViewListener.STATE_VISIBLE);
				} 
			} 
			mHeaderView.setVisibility(View.VISIBLE);
		} 
	}