views-widgets-samples
                                
                                
                                
                                    views-widgets-samples copied to clipboard
                            
                            
                            
                        When on empty view, swipe to refresh not completely show refreshing circle
Just as this post(https://github.com/UweTrottmann/SeriesGuide/issues/390) says, but there is a bit different.
It can refresh, but not completely show refreshing circle when on empty view.
Hi, I am facing the same problem it's hard to show refreshing circle if list data is empty. please help
yea, same. how to fix this?
Did google guys actually tested the solution? There is no difference between this so called SwipeRefreshMultipleViews and SwipeRefreshLayout. Same prolem when empty view is showing refresh circle is not showing properly.
Ok guys i have found the solution. Use android:clickable="true" on your FrameLayout.
Facing the same problem, when I swipe with gesture, in my occasion, it didn't show the refreshing cycle although my "mSwipeRefreshLayout" has refreshing state true (isRefreshing() returned true).
So, I had something like: 1 - (onCreate) setRefreshing(true), recyclerview.setVisibility(..GONE) 2 - (no internet connection) setRefreshing(false), 3 - (yes internet connection + swipe gesture) setRefreshing(was already set true) , recyclerview.setVisibility(..VISIBLE) --- > refresh cycle not showing <---
What I did to make it work? I have added on step 2, after setRefreshing(false), "recyclerview.setVisibility(..VISIBILE)" :)
I was having this issue since my recyclerview was empty, there were no data coming from the server since I was not able to make a request (no internet connection), and since it was empty, I had set it with visibility(..GONE). In this way when refreshing, the workflow was working but the refresh cycle wasn't showing. So I make it VISIBLE even though there was nothing to show.
Hi. I share my code which is worked for me(see this on stackoverflow):
-the xml layout:
-the custom SwipeRefreshLayout:
You should try it, and I hope it helps. :D
My issue was my adapter was null. so I initialize adapter with empty list.
+1