0

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?

akshay bhange
  • 2,320
  • 2
  • 28
  • 46

0 Answers0