Tencent / QMUI_Android

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

由1.1.3更新1.1.12后QMUICollapsingTopBarLayout报错 #486

Open ivivisoft opened 5 years ago

ivivisoft commented 5 years ago

运行环境

具体问题描述

<?xml version="1.0" encoding="utf-8"?>

<android.support.design.widget.CoordinatorLayout 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/qmui_config_color_white"> <com.qmuiteam.qmui.widget.QMUIAppBarLayout android:layout_width="match_parent" android:layout_height="256dp" android:fitsSystemWindows="true">

    <com.qmuiteam.qmui.widget.QMUICollapsingTopBarLayout
        android:id="@+id/collapsing_topbar_layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:layout_scrollFlags="scroll|exitUntilCollapsed"
        app:qmui_collapsedTitleGravity="center"
        app:qmui_contentScrim="?attr/qmui_config_color_blue"
        app:qmui_expandedTitleGravity="center_horizontal|bottom"
        app:qmui_expandedTitleMarginBottom="20dp"
        app:qmui_statusBarScrim="?attr/qmui_config_color_blue"
        android:minHeight="?attr/qmui_topbar_height">

        <ImageView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:contentDescription="@string/common_example"
            android:fitsSystemWindows="false"
            android:scaleType="centerCrop"
            android:src="@mipmap/qd_show_img_1"
            app:qmui_layout_collapseMode="parallax"
            app:qmui_layout_collapseParallaxMultiplier="0.7"/>

        <com.qmuiteam.qmui.widget.QMUITopBar
            android:id="@+id/topbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/qmui_topbar_height"
            android:fitsSystemWindows="true"
            app:qmui_layout_collapseMode="pin"
            app:qmui_topbar_bg_color="@color/qmui_config_color_transparent"
            app:qmui_topbar_need_separator="false"/>
    </com.qmuiteam.qmui.widget.QMUICollapsingTopBarLayout>
</com.qmuiteam.qmui.widget.QMUIAppBarLayout>
<android.support.v4.widget.NestedScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    android:fitsSystemWindows="true">
<com.qmuiteam.qmui.widget.grouplist.QMUIGroupListView
    android:id="@+id/groupListView"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />
</android.support.v4.widget.NestedScrollView>

</android.support.design.widget.CoordinatorLayout>

问题截图

image

Layout Inspector 文件(如何获取)

异常日志(堆栈)

本来使用1.1.3没有什么问题

cgspine commented 5 years ago

这些属性是在 support design library 里面的, 有这方面的改动?