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

感情迁移 提交于 2019-12-12 09:27:44

问题


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?


回答1:


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:




回答2:


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);


来源:https://stackoverflow.com/questions/10881244/android-page-curl-by-harism-curling-the-page-from-left-to-right

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!