Giter VIP home page Giter VIP logo

Comments (8)

gipsey avatar gipsey commented on July 1, 2024 1

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

from views-widgets-samples.

samaralii avatar samaralii commented on July 1, 2024 1

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

from views-widgets-samples.

rajendrabohra avatar rajendrabohra commented on July 1, 2024

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

from views-widgets-samples.

mkaarthick avatar mkaarthick commented on July 1, 2024

yea, same. how to fix this?

from views-widgets-samples.

babar-econceptions avatar babar-econceptions commented on July 1, 2024

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.

from views-widgets-samples.

babar-econceptions avatar babar-econceptions commented on July 1, 2024

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

from views-widgets-samples.

 avatar commented on July 1, 2024

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.

from views-widgets-samples.

carl1990 avatar carl1990 commented on July 1, 2024

+1

from views-widgets-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.