So, As a an Android Developer, with the new Material Design, I tend to often run into the RecyclerView. It’s awesome! We can use any kind of views inside it, and it works beautifully! Those CardViews are such great eye-candy, and the RecyclerView make them fun and flexible to use. But, coming from using the standard ListView, I saw a problem. There’s no inbuilt way to just set the EmptyView in RecyclerView in case the list is empty. Every time I created a RecyclerView, no matter how small the application, The activity code would contain a huge amount of lines altering (read, changing visibility of) the different views according to the situation (Empty List, Error while making network call, Loading from the network etc.). The XML was not much different either. Too much code, too little accomplished. I always wanted a fix for it. So I created one.

Github/the-cybersapien/RecyclerELE

Read More