क्या किसी ने अभी भी 23.2 पर एक साथ काम करने के लिए रीसाइक्लिंग, ऐपबारलेआउट्स और स्वाइप रिफ्रेश लेआउट प्राप्त करने का कोई तरीका निकाला है? मैं एक सुंदर मानक विधि का उपयोग कर रहा हूं जो मुझे लगता है, लेकिन swiperefreshlayout रीसाइक्लिंग व्यू को स्थानांतरित करने का प्रयास करते समय स्क्रॉल इशारा को पकड़ता रहता है।समर्थन लाइब्रेरी का उपयोग कर रीसाइक्लिंगव्यू और स्वाइप रीफ्रेशआउटआउट 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>
साथ
अंदर निम्नलिखित यह
<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>
आपको इस कार्यवाही को अब लागू करने की आवश्यकता नहीं है, क्योंकि यह 23.3.0 में तय है। – segoh