Open PrakashGujarati opened 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?
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.
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);
}
Device in Landscape view images are not display.