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

后端 未结 2 1691
一个人的身影
一个人的身影 2020-12-16 17:12

I am using the Page curl animation in my application.

Code can be found here: https://github.com/harism/android_page_curl/.

That code is working fine but i

2条回答
  •  盖世英雄少女心
    2020-12-16 18:08

    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

提交回复
热议问题