Open wflian opened 3 years ago
2.0.0-alpha10
qmui_topbar_height 配置无效,其他标题相关配置有效
主题配置:
TopBar主题配置:
布局配置: <com.qmuiteam.qmui.widget.QMUIWindowInsetLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white"
<com.qmuiteam.qmui.widget.QMUITopBarLayout android:id="@+id/topbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:fitsSystemWindows="true" android:layout_gravity="top" /> </com.qmuiteam.qmui.widget.QMUIWindowInsetLayout > 这样编写有什么问题吗? 这种写法无论高度如何修改,都是不会变
在theme里单独配置
<style name="AppTheme" parent="QMUI.Compat.NoActionBar"> <item name="qmui_topbar_height">50dp</item> </style>
运行环境
2.0.0-alpha10
具体问题描述
qmui_topbar_height 配置无效,其他标题相关配置有效
问题截图
主题配置:
TopBar主题配置:
布局配置: <com.qmuiteam.qmui.widget.QMUIWindowInsetLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white"