Android Page Curl Animation

Android page Curl animation

I'm implementing a 2D page curl in the native canvas. Check my answer in: Implement page curl on android?

EDIT: The code project of my implementation: http://code.google.com/p/android-page-curl/
EDIT2: Links updated

Page Curl Animation in android?

I found one sample code.

youtube

mediafire

Page Curl effect using harism page curl library, page background appears with black border in place of transparency.

    Comments these lines in the activity
r.left += border;
r.right -= border;
r.top += border;
r.bottom -= border;

r.left += ((r.width() - imageWidth) / 2) - border;
r.right = r.left + imageWidth + border + border;
r.top += ((r.height() - imageHeight) / 2) - border;
r.bottom = r.top + imageHeight + border + border;
replace this function in the CurlView Activity

public void setMargins(float left, float top, float right, float bottom) {
mRenderer.setMargins(left, top, right, bottom);
}


Related Topics



Leave a reply



Submit