Back to project page AndroidImageSlider.
The source code is released under:
MIT License
If you think the Android project AndroidImageSlider listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.daimajia.slider.library.Transformers; // ww w. j a va2s . c o m import android.view.View; import com.nineoldandroids.view.ViewHelper; public class StackTransformer extends BaseTransformer { @Override protected void onTransform(View view, float position) { ViewHelper.setTranslationX(view,position < 0 ? 0f : -view.getWidth() * position); } }