Ich habe Probleme bei der Integration der Design Support Library in meine Anwendung. Aus irgendeinem Grund kollabiert die Symbolleiste mit der CollapsingToolbarLayout und lässt sie nicht wie im Cheesesquare-Beispiel von Chris Banes fixiert. https://github.com/chrisbanes/cheesesquare(Design-Support-Bibliothek) CollapsingToolbarLayout - Toolbar wird beim Minimieren nicht fixiert
Ich habe nichts anderes zu meinem Layout getan. Tatsächlich habe ich meine Stile durch seine ersetzt und in sein Layout eingefügt. Ich frage mich, ob die Verwendung von Toolbar anstelle von android.support.v7.widget.Toolbar dies verursacht.
Hier ist das Problem.
Hier ist meine XML des AppBar Abschnitt.
<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>
Was ist Ihre Ansicht mit 'App: layout_behavior = "@ Zeichenfolge/appbar_scrolling_view_behavior"'? – ianhanniballake
Wie hast du das GIF gemacht? –