I have a RecyclerView which is essentially endless, and it loads data 10 items at a time using a cursor. I got a circular progress bar to show up at the bottom when items are still loading, however, if I stop the internet connection, the progress bar continues to spin on forever. How would I implement a message that replaces the circular progress bar if there is no internet connection?
A good example of what I'm trying to do is what the Play Store uses, as well as reddit is fun.
(Progress bar while loading content)
("No internet connection" message to replace progress bar)
The code I used for my progress bar is very similar to the way @vilen implemented it here