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

后端 未结 2 1683
一个人的身影
一个人的身影 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

    0 讨论(0)
  • 2020-12-16 18:10
    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..

    0 讨论(0)
提交回复
热议问题