I'm using Dagger2, Retrofit & following MVVM pattern in an application. I want to show progress bar while the page is loading & error message for network error or any data related issues. in my current implementation without Dagger, I've created a custom view & added that in each fragment with visibility gone & showing when needed. that view takes the context of activity & view to inflate as constructor parameters. is there any better way to display full-screen error page rather than adding a custom view in each fragment?
Asked
Active
Viewed 82 times
0
-
yes , use a SnackBar – coroutineDispatcher Apr 16 '19 at 10:43
-
I want to show errors in full screen mode .. errors can be "No item in cart" or "No internet Connection" – akshay bhange Apr 16 '19 at 11:49