Android 协调器布局在AppbarLayout的高度移动内容

Android 协调器布局在AppbarLayout的高度移动内容,android,android-coordinatorlayout,android-appbarlayout,Android,Android Coordinatorlayout,Android Appbarlayout,在我的项目中包括协调器布局之后,我遇到了一个问题。我会发布我的布局 以下是我的主要_layout.xml: <android.support.design.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.design.widget.AppBarLayout android:layout_

在我的项目中包括协调器布局之后,我遇到了一个问题。我会发布我的布局

以下是我的主要_layout.xml:

<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent">

<android.support.design.widget.AppBarLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">

    <android.support.v7.widget.Toolbar
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        app:layout_scrollFlags="scroll|enterAlways"/>

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

<LinearLayout
    android:id="@+id/frame_content_keeper"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    app:layout_behavior="@string/appbar_scrolling_view_behavior">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:orientation="vertical">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Top Text"/>
    </LinearLayout>

    <LinearLayout
        android:id="@+id/login_buttons"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_weight="0"
        android:orientation="horizontal">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Bottom text"/>
    </LinearLayout>
</LinearLayout>
</android.support.design.widget.CoordinatorLayout>


我看不到带有“底部文本”的文本视图。看起来它在屏幕下。我认为这是一个缺陷。

这是正常的,因为您应该删除这一行

app:layout_scrollFlags=“scroll | enterally”

从你的

android.support.v7.widget.Toolbar

此属性用于当您有列表并且将向下滚动时,操作栏将隐藏