FlexibleAdapter icon indicating copy to clipboard operation
FlexibleAdapter copied to clipboard

EmptyView & EmptyViewHelper

Open davideas opened this issue 7 years ago • 2 comments

UI extension for FlexibleAdapter able to display the current state of the list, such as:

  • [ ] Loading
  • [x] Empty after loading
  • [x] Empty after a search
  • [ ] Error

A Helper class that enhances the Adapter by implementing OnUpdateListener that manages the visibility with animations too. The Helper and the View will support:

  • [ ] Predefined vector drawables
  • [ ] Predefined loading styles
  • [ ] Predefined Show/Hide animations
  • [ ] Custom text
  • [ ] Custom font
  • [ ] Custom tint
  • [ ] Custom background

davideas avatar Sep 03 '17 00:09 davideas

Hi what's the status of the support for error views ? Also will there be a nice way to connect this to the ViewModel extension to handle Content, Empty and Error

AlexisQapa avatar Jan 25 '18 16:01 AlexisQapa

I usually combine with the library LadSir with liveData on viewModel send a flag control taskStatus LOADING EMPTY ERROR COMPLETED and then I show the proper view. Ttake a look when you have time

webserveis avatar Mar 10 '18 21:03 webserveis