Android-AppMsg
Android-AppMsg copied to clipboard
Android 4.4 KitKat translucent system bar issues
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.
same issue
same issuse
same issue
same issue ;(
Use setLayoutParams :)
how do that @matthew-reilly
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;
}
Works for top. Not works for the bottom of the screen (transparent navbar).
setMargins(0, 0, 0, MARGIN_FOR_BOTTOM);