I\'d like to make the status bar transparent by adding
to v21/styles.xml on
I believe this question is pointing to same problem Android appbarlayout elevation appears in status bar
Possible solutions:
Your root layout should have android:fitsSystemWindows="true"
at all times, otherwise your UI will not draw behind status bar.
Now wrap the AppBarLayout
inside another CoordinatorLayout
which has
android:fitsSystemWindows="false"
.
This will prevent the shadow from overflowing into statusbar.