elye / loaderviewlibrary

Library that enables TextView of ImageView to show loading animation while waiting for the text and image get loaded
Apache License 2.0
2.51k stars 325 forks source link

Use case in recyclerview #14

Closed ClaudeHangui closed 7 years ago

ClaudeHangui commented 7 years ago

How does it work inside an adapter class?? Use case: I already have a dataset in my listview/recyclerview and I make a swipetorefresh list.. how do I notify the viewholder to start the loading animation while awaiting data from the network ?

kobusLink commented 7 years ago

Is it not possible to use the View.resetLoader(); method inside the adapter class?

elye commented 7 years ago

@kobusLink noted that very well. Thanks. @ClaudeHangui, when you swipe to refresh, if there's no data, you shouldn't be displaying the recyclerview list of empty data. Ideally from a design point of view, an empty state view should be shown. Hope this helps.

I'm closing this issue unless there's further inquiries. Thanks.