Hat jemand einen Weg gefunden, um Recyclerviews, AppbarLayouts und SwipeRefreshLayout auf 23.2 zusammen zu arbeiten? Ich verwende eine ziemlich normale Methode, denke ich, aber das swipe refreshlayout hält weiterhin die Scroll-Geste fest, wenn man versucht, die Recycleransicht nach oben zu verschieben.Recyclerviews und SwipeRefreshLayout mit Hilfe der Support-Bibliothek 23.2.0
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="?attr/toolbar_theme"
app:layout_scrollFlags="scroll|enterAlways"
android:elevation="4dp" />
</android.support.design.widget.AppBarLayout>
<FrameLayout
android:id="@+id/fragment_container"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--fragment goes here -->
</FrameLayout>
</android.support.design.widget.CoordinatorLayout>
mit folgenden Inneren
<android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/swipe_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/window_background">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ProgressBar
android:id="@+id/progress_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_marginTop="-4dp"
android:layout_marginBottom="-8dp"
android:elevation="17dp"
android:indeterminate="true"
android:visibility="invisible" />
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical" />
</FrameLayout>
</android.support.v4.widget.SwipeRefreshLayout>
Sie müssen diese Problemumgehung nicht mehr anwenden, da dies in 23.3.0 behoben ist. – segoh