FlexibleAdapter
FlexibleAdapter copied to clipboard
EmptyView & EmptyViewHelper
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
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
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