Code example for Activity

Methods: getActionBar

0
		return null; 
	} 
 
	/** 
	 * @param fromTouch 
	 *            - Whether this is being invoked from a touch event 
	 * @return true if we're currently in a state where a refresh can be 
	 *         started. 
	 */ 
	private boolean canRefresh(boolean fromTouch, OnRefreshListener listener) {
		return !mIsRefreshing && (!fromTouch || listener != null);
	} 
 
	private float getScrollNeededForRefresh(View view) {
		return view.getHeight() * mRefreshScrollDistance;
	} 
 
	private void reset(boolean fromTouch) {
		// Update isRefreshing state 
		mIsRefreshing = false;