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

Android 4.4 KitKat translucent system bar issues #18

Open
afollestad opened this issue Dec 16, 2013 · 8 comments
Open

Android 4.4 KitKat translucent system bar issues #18

afollestad opened this issue Dec 16, 2013 · 8 comments

Comments

@afollestad
Copy link

If you use the translucent status bar on Android 4.4 KitKat with the android:fitsSystemWindows theme attribute, AppMsges are shown above the action bar in the status bar area and you can't see much of them.

@ahmedoid
Copy link

same issue

@aa900031
Copy link

aa900031 commented Mar 8, 2014

same issuse

@alexandrepossebom
Copy link

same issue

@GAV-516
Copy link

GAV-516 commented Jul 12, 2014

same issue ;(

@matthew-reilly
Copy link
Contributor

Use setLayoutParams :)

@kiratheone
Copy link

how do that @matthew-reilly

@matthew-reilly
Copy link
Contributor

appMsg.setLayoutParams(getParams());

 /**
     * The new theme requires some layout tweaking for croutons
     */
    public FrameLayout.LayoutParams getParams() {
        FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(
                LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);
        layoutParams.setMargins(0, getSupportActionBar().getHeight(), 0, 0);
        return layoutParams;
    }

@indywidualny
Copy link

Works for top. Not works for the bottom of the screen (transparent navbar).
setMargins(0, 0, 0, MARGIN_FOR_BOTTOM);

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

8 participants