Reputation: 3366
I want to create half page curl animation effect as shown in image:
I've used code from https://github.com/harism/android_page_curl/ , but it turns whole page. I just only want half page curl effect as shown in image.
Upvotes: 7
Views: 8476
Reputation: 1933
It is enough to change part of code at updatePageRects() method in CurlRenderer class:
mPageRectRight.bottom = (mPageRectRight.bottom - mViewRect.height() * mMargins.bottom)/5;
Upvotes: 0
Reputation: 6012
You could try to modify my implementation. It's not 3D but a nice 2D simulation using the plain canvas: http://code.google.com/p/android-page-curl/
If you enbale the debug mode you will see how it works and modifying the curl plane should be easy.
Upvotes: 1