views-widgets-samples icon indicating copy to clipboard operation
views-widgets-samples copied to clipboard

When on empty view, swipe to refresh not completely show refreshing circle

Open Honghe opened this issue 10 years ago • 8 comments

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.

Honghe avatar Apr 21 '15 15:04 Honghe

Hi, I am facing the same problem it's hard to show refreshing circle if list data is empty. please help

rajendrabohra avatar May 12 '15 09:05 rajendrabohra

yea, same. how to fix this?

mkaarthick avatar Jul 10 '15 09:07 mkaarthick

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.

babar-econceptions avatar Aug 06 '15 06:08 babar-econceptions

Ok guys i have found the solution. Use android:clickable="true" on your FrameLayout.

babar-econceptions avatar Aug 06 '15 06:08 babar-econceptions

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.

ghost avatar Aug 31 '15 12:08 ghost

Hi. I share my code which is worked for me(see this on stackoverflow): -the xml layout: screen shot 2015-09-02 at 6 44 37 pm -the custom SwipeRefreshLayout: screen shot 2015-09-02 at 6 45 34 pm You should try it, and I hope it helps. :D

gipsey avatar Sep 02 '15 15:09 gipsey

My issue was my adapter was null. so I initialize adapter with empty list.

samaralii avatar Nov 23 '17 12:11 samaralii

+1

carl1990 avatar Feb 01 '18 08:02 carl1990