Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Landscape View in Flip Page not working #52

Open
PrakashGujarati opened this issue Mar 7, 2020 · 3 comments
Open

Landscape View in Flip Page not working #52

PrakashGujarati opened this issue Mar 7, 2020 · 3 comments

Comments

@PrakashGujarati
Copy link

Device in Landscape view images are not display.

@eschao
Copy link
Owner

eschao commented May 29, 2020

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants