Code example for Transformation

Methods: clearsetAlpha

0
		return MathUtils.map(getActualScrollX(), 0, getMaxScrollX(), 0, getMaxPositionX()); 
	} 
 
	@Override 
	protected boolean getChildStaticTransformation(View child, Transformation t) {
		t.clear();
		// t.setAlpha(child == mSelectedChild ? 1.0f : mUnselectedAlpha); 
		// Set the alpha based on how much out the screen it is 
		t.setAlpha(MathUtils.map(Math.abs(child.getId() - getPositionX()), 0, 1, 1, getUnselectedAlpha()));
		return true; 
	} 
 
	protected void dispatchOnScrollZGallery(int __l, int __t, int __oldl, int __oldt) {
		if (onScrollZGalleryListener != null) onScrollZGalleryListener.onScrollZGallery(this, __l, __t, __oldl, __oldt);
	} 
 
	// ================================================================================================================ 
	// EVENT INTERFACE ------------------------------------------------------------------------------------------------ 
 
	 @Override 
Experience pair programming with AI  Get Codota for Java