harism / android-pagecurl

An example application for creating page curl/flip effect on Android using OpenGL ES.
Apache License 2.0
1.66k stars 610 forks source link

Curl View Mode Switch from Single to Double #91

Open jAddict7 opened 8 years ago

jAddict7 commented 8 years ago

Is it possible to switch view mode from single to double, for instance the book front and back cover photo must be shown single view and other pages as side by side pages. I have tried but app getting crashed. After first animation end we need to trigger pageSizer without crashing. Anyone tried and succeeded?

jainadit27 commented 6 years ago

@jAddict7 You can change height by 1 dp and request layout to forcefully call onSizeChanged(). and in onSizeChanged, you can set view type based on index. curlView.getLayoutParams().height = curlView.getHeight() - 1; curlView.requestLayout();