Code example for ViewConfiguration

Methods: getScaledMinimumFlingVelocity

0
velocity = 0;
				} 
 
				// Animate view 
				if (Math.abs(velocity) > viewConfiguration.getScaledMinimumFlingVelocity())
				{ 
					if (velocity > 0)
						animateOpen(); 
					else 
						animateClose(); 
				} 
				else 
				{ 
					if (contentCurrentOffset > (getMeasuredWidth() / 2))
						animateOpen(); 
					else 
						animateClose(); 
				} 
 
				return true;