【发布时间】:2019-09-13 13:25:39
【问题描述】:
为什么 AppBar 会上升?以及如何解决?
附加信息。
如果你启动activity然后立即这个fragment,那么一切都OK。
如果你开始活动,然后是一些片段,然后是这个片段,那么一切都很糟糕。
image. Android Studio layout designer - OK
xml布局code is here.
UPD。
<style name="EcommerceToolbar" parent="Widget.MaterialComponents.Toolbar">
<item name="android:theme">@style/ThemeOverlay.MaterialComponents.Dark.ActionBar</item>
<item name="popupTheme">@style/ThemeOverlay.MaterialComponents.Light</item>
</style>
【问题讨论】:
-
你能分享
@style/EcommerceToolbar吗? -
@es0329 请查看 UPD。
标签: android android-layout android-appbarlayout androidx appbar