QMUI_Android icon indicating copy to clipboard operation
QMUI_Android copied to clipboard

qmui_topbar_height配置无效

Open wflian opened this issue 5 years ago • 1 comments

运行环境

  • [x] 设备型号:所有
  • [x] 设备系统版本:所有
  • [x] Gradle 版本:所有
  • [x] QMUI Android 版本: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 > 这样编写有什么问题吗? 这种写法无论高度如何修改,都是不会变

wflian avatar Nov 07 '20 07:11 wflian

在theme里单独配置

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

Theoneee avatar Feb 25 '21 16:02 Theoneee