How can we show Page Curl Animation on click of the Button in android

醉酒当歌 提交于 2019-11-29 03:50:57
ADB

For the full screen display you have to use like that

private class SizeChangedObserver implements CurlView.SizeChangedObserver {
        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);
            }
        }
    }

}

Also to show the animation see that link Page curl animation - issue

  1. Have you tried changing

    int margin = 7;

    int border = 3;

to eks.

int margin = 0;
int border = 0; 

the loadBitmap(..) function?

I actually removed the boarder and margins within loadBitmap some time ago in a project i worked on, but i dont have the code anymore..

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