Code example for ViewPager

Methods: onTouchEvent

0
	} 
 
	@Override 
	public boolean onTouchEvent(MotionEvent event) { 
		if (!_frozen) 
			return super.onTouchEvent(event); 
		return false; 
	} 
 
	public void freeze() { 
		_frozen = true; 
	} 
 
	public void unfreeze() { 
		_frozen = false; 
	} 
}