Closed levibostian closed 6 years ago
I do not want to encourage developers of using my cookie cutter views for their apps. I want to encourage each app to have their own unique way of showing this data in their app.
I am going to update the readme to include some sample code on a custom view used for status update purposes.
For the beginner developer, I understand how this could be useful. I will see what to do.....
Now, I use the LoadingEmptyView in my https://github.com/curiosityio/androidviews project. This is handy, but also a pain because I have to manually toggle between content/loading/empty state.
Data managers are in charge of the state of the views. When you call an API, we show loading. When it errors, we show an error view. When data is available, we show content.
Could we provide viewgroups that link to data managers that toggle between these states easily?