Android 协调器布局滚动容器内的标志

Android 协调器布局滚动容器内的标志,android,Android,你好, 我有协调人布局: <?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=

你好, 我有
协调人布局

<?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/white"
    android:clickable="true"
    android:orientation="vertical">

    <android.support.design.widget.AppBarLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/transparent"
        >

        <LinearLayout
            android:background="@color/white"
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            >

            <TextView
                android:id="@+id/title"
                app:layout_scrollFlags="scroll|enterAlways"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="center_vertical"
                android:padding="10dp"
                android:textColor="@color/black"
                android:textSize="@dimen/heading_size" />

            <ImageView
                android:layout_width="match_parent"
                android:layout_height="@dimen/_150sdp"
                android:adjustViewBounds="true"
                android:scaleType="centerCrop"
                android:src="@drawable/top_static_banner"
                android:visibility="gone" />

            <com.app.customviews.filter.FilterPanel
                android:id="@+id/filter_panel"
                android:layout_width="match_parent"
                android:layout_height="wrap_content" />
        </LinearLayout>
    </android.support.design.widget.AppBarLayout>

    <android.support.v7.widget.RecyclerView
        android:id="@+id/products_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/menu_divider"
        android:columnWidth="@dimen/product_row_width"
        app:layout_behavior="@string/appbar_scrolling_view_behavior" />

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

FilterPanel
FrameLayout

我面临的问题是,android忽略
app:layou scrollFlags
内部
LinearLayout
容器。 我想在
LinearLayout
内部
TextView
中添加标志,但是如何实现呢


无论如何,谢谢你

我发现解决方案非常简单:

AppBarLayout
LinearLayout
的子项,因此我从布局中删除了
LinearLayout
,并为
AppBarLayout
添加了
android:orientation=“vertical”
,现在我可以做我需要的事情了