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

Animation stops with fullscreen Flag #24

Open
faisalasghar opened this issue Aug 26, 2019 · 0 comments
Open

Animation stops with fullscreen Flag #24

faisalasghar opened this issue Aug 26, 2019 · 0 comments

Comments

@faisalasghar
Copy link

The view doesn't animate if you use the full screen flag in the activity

View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN

Animation keeps working with all the other flags which hide the navigation and statusbar , but i also need the fullscreen flag to fill the hidden nav and status bars with the activity content. But it causes the Grav View to not animate at all. Below is the code that i use. I call it in onWindowFocusChanged function

View decorView = getWindow().getDecorView();
        decorView.setSystemUiVisibility(
                View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
                        | View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                        | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
                        | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
                        | View.SYSTEM_UI_FLAG_FULLSCREEN
        );
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

1 participant