(Design Support Library) CollapsingToolbarLayout - Symbolleiste wird beim Reduzieren nicht fixiert

Ich habe Probleme, die Design Support Library in meine Anwendung zu integrieren. Aus irgendeinem Grund wird die Symbolleiste mit dem CollapsingToolbarLayout ausgeblendet und bleibt nicht wie im Cheesesquare-Beispiel von Chris Banes fixiert.https: //github.com/chrisbanes/cheesesquar

Ich habe nichts anderes an meinem Layout gemacht. Tatsächlich habe ich meine Stile durch seine ersetzt und sein Layout geändert. Ich frage mich, ob die Verwendung von Toolbar anstelle von android.support.v7.widget.Toolbar dies verursacht.

Hier ist das Problem.

Hier ist mein XML des AppBar-Abschnitts.

<android.support.design.widget.CoordinatorLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/main_content"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true">


    <android.support.design.widget.AppBarLayout
        android:id="@+id/appbar"
        android:layout_width="match_parent"
        android:layout_height="@dimen/detail_backdrop_height"
        android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
        android:fitsSystemWindows="true">

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

            <ImageView
                android:id="@+id/backdrop"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:fitsSystemWindows="true"
                app:layout_collapseMode="parallax" />

            <Toolbar
                android:id="@+id/toolbar"
                android:layout_width="match_parent"
                android:layout_height="?attr/actionBarSize"
                app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
                app:layout_collapseMode="pin" />

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

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

    ...

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

Antworten auf die Frage(6)

Ihre Antwort auf die Frage