eschao / android-PageFlip

3D Style Page Flip on Android
Apache License 2.0
1.74k stars 262 forks source link

Landscape View in Flip Page not working #52

Open PrakashGujarati opened 4 years ago

PrakashGujarati commented 4 years ago

Device in Landscape view images are not display.

eschao commented 4 years ago

Can you make it more clear? Using our sample to try or your own project? What happened? black screen or mess picture on screen?

ekartoyev commented 3 years ago

Hello, @eschao!

Thank you for the wonderful page-flip implementation.

I wasn't able to run the sample in Android Studio, so I started a new androidx project, copied all the sample's sources, did the "implementation" of the required libraries in build.gradle.

Vertical orientation works fine. Horizontal - no, does not work. Black screen. Overlaying page numbers. Samsung, Android 10.

But I didn't look through the code yet.

Image1

Image

NimeshHirpara commented 1 year ago

Comments following lines in SampleActivity is working for me

if (Build.VERSION.SDK_INT < 16) {
            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                    WindowManager.LayoutParams.FLAG_FULLSCREEN);
        } else {
            mPageFlipView.setSystemUiVisibility(
                    View.SYSTEM_UI_FLAG_FULLSCREEN |
                            View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
                            View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
                            View.SYSTEM_UI_FLAG_IMMERSIVE |
                            View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
        }