Tencent / QMUI_Android

提高 Android UI 开发效率的 UI 库
http://qmuiteam.com/android
Other
14.42k stars 2.67k forks source link

qmui_topbar_height配置无效 #1027

Open wflian opened 3 years ago

wflian commented 3 years ago

运行环境

具体问题描述

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 > 这样编写有什么问题吗? 这种写法无论高度如何修改,都是不会变

Theoneee commented 3 years ago

在theme里单独配置

<style name="AppTheme" parent="QMUI.Compat.NoActionBar">
 <item name="qmui_topbar_height">50dp</item>
</style>