Code example for GestureDetector

Methods: onTouchEvent

0
		return true; 
	} 
 
	@Override 
	public final boolean onTouch(final View v, final MotionEvent event) {
		mGestureDector.onTouchEvent(event);
		return false; 
	} 
 
	public void setPullToRefreshEnabled(final boolean enabled) {
		if (mPullToRefreshAttacherActivity == null) return;
		mPullToRefreshAttacherActivity.setPullToRefreshEnabled(this, enabled);
	} 
 
	public void setRefreshComplete() { 
		if (mPullToRefreshAttacherActivity == null) return;
		mPulledUp = false;
		mPullToRefreshAttacherActivity.setRefreshComplete(this);
	}