android-viewpager-transformers icon indicating copy to clipboard operation
android-viewpager-transformers copied to clipboard

How to make Stack transformation in opposite direction???

Open Karthikg206 opened this issue 7 years ago • 2 comments

i want to implement swipe right will collapse stack how to achieve that....could you help me

Karthikg206 avatar May 25 '17 06:05 Karthikg206

Hi, Override this public void transformPage(View view, float position) { if (position < -1) { view.setAlpha(0); } else if (position <= 0) { view.setAlpha(1 + position); view.setTranslationX(view.getWidth() * -position); view.setTranslationZ(-1); view.setScaleX(1); view.setScaleY(1); } else if (position <= 1) { view.setAlpha(1); view.setScaleX(1); view.setScaleY(1); view.setTranslationZ(1); } else { view.setAlpha(1); } }

Rishabh-sx avatar Nov 17 '17 07:11 Rishabh-sx

Is there any solution to achieve the stack transformation in the opposite direction ?

Alqasrawi avatar Apr 15 '18 08:04 Alqasrawi