Android 当AppBarLayout';如果超过屏幕的高度,将错过表格布局

Android 当AppBarLayout';如果超过屏幕的高度,将错过表格布局,android,Android,但当我把它设为“匹配父母”时,TabLayout就消失了 android:layout\u height=“match\u parent” 有人遇到这个问题吗?我想在CollasingToolbarLayout中执行一些操作,但不能超过一个屏幕。嘿,我遇到了同样的问题。你找到解决办法了吗?嘿,我也有同样的问题。你找到解决办法了吗? <android.support.design.widget.AppBarLayout android:id="@+id/app_bar_layout

但当我把它设为“匹配父母”时,TabLayout就消失了

android:layout\u height=“match\u parent”


有人遇到这个问题吗?我想在CollasingToolbarLayout中执行一些操作,但不能超过一个屏幕。

嘿,我遇到了同样的问题。你找到解决办法了吗?嘿,我也有同样的问题。你找到解决办法了吗?
<android.support.design.widget.AppBarLayout
    android:id="@+id/app_bar_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true">


    <android.support.design.widget.CollapsingToolbarLayout
        android:id="@+id/collaps_toolbar_layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fitsSystemWindows="true"
        app:contentScrim="?attr/colorPrimary"
        app:expandedTitleMarginEnd="64dp"
        app:expandedTitleMarginStart="48dp"
        app:layout_scrollFlags="scroll|enterAlwaysCollapsed">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:fitsSystemWindows="true"
            android:orientation="vertical"
            app:layout_collapseMode="parallax">

            <View
                android:layout_width="match_parent"
                android:layout_height="300dp"
                android:background="#451145" />

            <TextView
                android:id="@+id/text"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="24545aga" />
        </LinearLayout>


        <android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            app:layout_collapseMode="pin">

        </android.support.v7.widget.Toolbar>
    </android.support.design.widget.CollapsingToolbarLayout>

    <android.support.design.widget.TabLayout
        android:id="@+id/tabLayout"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal"
        app:tabMode="scrollable" />

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


<android.support.v4.view.ViewPager
    android:id="@+id/viewpager"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:clipToPadding="false"
    app:layout_behavior="@string/appbar_scrolling_view_behavior" />