Bayan
Bayan

Reputation: 283

Android page curl by harism , curling the page from left to right

I need to edit harism's project about page curl to make pages turns from left to right instead of right to left.

From where should I start?

Upvotes: 1

Views: 1887

Answers (2)

dreamfighter
dreamfighter

Reputation: 111

Your requirement is same with me, I have modify Curl Page from harism to fit it. thanks to harism and I hope harism can make official patch. Curl Page From Left to Right while view mode set to SHOW_ONE_PAGE:

Upvotes: 3

Can't you set the current index to the last position and swipe back to first?

mPageProvider= new PageProvider();
mCurlView = (CurlView) findViewById(R.id.curl);
mCurlView.setPageProvider(mPageProvider);
mCurlView.setSizeChangedObserver(new SizeChangedObserver());
mCurlView.setCurrentIndex(index);
mCurlView.setBackgroundColor(0xFF202830);

mCurlView.setCurrentIndex(mPageProvider.mBitmapIds.length);

Upvotes: 1

Related Questions