java - Android: Swipe to refresh gets stuck on a recycler view with view pager -


here xml code

<framelayout     android:layout_width="match_parent"     android:layout_height="match_parent"     android:layout_below="@+id/flipper">      <android.support.v4.widget.swiperefreshlayout         android:id="@+id/refreshlayout"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:layout_below="@+id/headerlayout"         android:background="@color/background_color"         android:visibility="visible">          <android.support.v7.widget.recyclerview             android:id="@+id/list_appointment"             android:layout_width="match_parent"             android:layout_height="match_parent"             />      </android.support.v4.widget.swiperefreshlayout>       <relativelayout         android:id="@+id/emptyview"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_gravity="center"         android:visibility="gone">          <imageview             android:id="@+id/empty"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_centerhorizontal="true"             android:src="@drawable/ic_event_note"             android:textappearance="?android:textappearancemedium" />      </relativelayout> </framelayout> 

the recyclerviews adapter supports 2 types of views 1 cardview , viewpager.

when swipe refresh, circular refresh icon freezes on top of viewpager.onrefresh method called after tap refresh icon again.is there fix issue?


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -