Android-AppMsg icon indicating copy to clipboard operation
Android-AppMsg copied to clipboard

Android 4.4 KitKat translucent system bar issues

Open afollestad opened this issue 11 years ago • 8 comments

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.

afollestad avatar Dec 16 '13 22:12 afollestad

same issue

ahmedoid avatar Feb 27 '14 07:02 ahmedoid

same issuse

aa900031 avatar Mar 08 '14 14:03 aa900031

same issue

alexandrepossebom avatar Mar 30 '14 12:03 alexandrepossebom

same issue ;(

GAV-516 avatar Jul 12 '14 14:07 GAV-516

Use setLayoutParams :)

matthew-reilly avatar Nov 06 '14 17:11 matthew-reilly

how do that @matthew-reilly

kiratheone avatar Feb 12 '15 06:02 kiratheone

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

matthew-reilly avatar Feb 12 '15 15:02 matthew-reilly

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

indywidualny avatar Feb 06 '16 00:02 indywidualny