Toolbar behind status bar with API 21

后端 未结 3 1800
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-20 18:47

I\'ve a fragment with a CoordinatorLayout

When i run the app with API 19 the behavior is right : The toolbar is below the status bar and the FAB bu

相关标签:
3条回答
  • 2020-12-20 19:13

    add android:fitsSystemWindows="false"to the CoordinatorLayout

    0 讨论(0)
  • 2020-12-20 19:14

    Had a similar problem (exemplified here)

    How I made it work was to add android:fitsSystemWindows="false" to the AppBarLayout and have it on true on the CoordinatorLayout

    0 讨论(0)
  • 2020-12-20 19:38

    take off this line:

    <item name="android:windowTranslucentStatus">true</item>
    
    0 讨论(0)
提交回复
热议问题