Open DhiruBhaiBansal opened 9 years ago
private class SizeChangedObserver implements CurlView.SizeChangedObserver {
@Override
public void onSizeChanged(int w, int h) {
if (w > h) {
mCurlView.setViewMode(CurlView.SHOW_TWO_PAGES);
mCurlView.setMargins(0f, 0f, 0f, 0f);
} else {
mCurlView.setViewMode(CurlView.SHOW_ONE_PAGE);
mCurlView.setMargins(0f, 0f, 0f, 0f);
}
}
}
jest edit mCurlView.setMargins(0f, 0f, 0f, 0f);
in the CurlActivity
this will provide zero margins thus full screen CurlView
I want to increase size and margins from left/right/top/bottom of image in page curl example. please send me code how to done this. thank you