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

problem on android L #31

Open
ligi opened this issue Nov 12, 2014 · 3 comments
Open

problem on android L #31

ligi opened this issue Nov 12, 2014 · 3 comments

Comments

@ligi
Copy link

ligi commented Nov 12, 2014

just playing around with L and stumbled uppon this:

discreteapprate_problem

a fitsSystemWindows on the right place might help

@easycheese
Copy link
Contributor

I submitted a pull request that takes care of it for my app if you use the

getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);

Method of adding translucency. I couldn't seem to get anything to work using android:fitsSystemWindows.

@ligi
Copy link
Author

ligi commented Dec 14, 2014

great! at the moment I use android:fitsSystemWindows - do you have an example of the other method? My initial attempts where not producing the result I wanted

@easycheese
Copy link
Contributor

Check out the merge request from issue 31: Here is the code commit:

int translucentLolliPop = activity.getWindow().getDecorView().getSystemUiVisibility();
boolean isTranslucentLolliPop = (translucentLolliPop== View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);

if (isTranslucent || isTranslucentLolliPop) {

...
}

ligi added a commit to ligi/gobandroid that referenced this issue Dec 18, 2014
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

2 participants