Toolbar overlaps status bar

后端 未结 4 2041
深忆病人
深忆病人 2021-02-07 22:15

I\'ve got a problem with my status bar which gets overlapped by the toolbar.

I wanted to have the function that when the user scrolles the ListView down, t

相关标签:
4条回答
  • 2021-02-07 22:51

    Try add android:fitsSystemWindows="true" to android.support.design.widget.AppBarLayout or @style/AppTheme.PopupOverlay style

    0 讨论(0)
  • 2021-02-07 22:52

    This works for me to get a white overlay on device status bar (problem after update in question)

    I changed:

    <item name="android:windowDrawsSystemBarBackgrounds">true</item>
    

    to

    <item name="android:windowDrawsSystemBarBackgrounds">false</item>
    

    in my styles.xml file

    0 讨论(0)
  • 2021-02-07 23:08

    try making android:layout_height="?attr/actionBarSize" for android.support.v7.widget.Toolbar

    0 讨论(0)
  • 2021-02-07 23:14

    in v21\styles.xml

    remove <item name="android:statusBarColor">@android:color/transparent</item>

    0 讨论(0)
提交回复
热议问题