Android - Is there a better approach to show states view?

Keywords´╝Ü android clean-architecture

Question: 

I am learning about Clean, and now I need to show a loading view in every fragment and a error view, with try again, when something wrong happens.

My case is: is there a BETTER APPROACH to make it? Some recommendations.

I used to put a FrameLayout in every screen and use it to inflate another view (loading, error, empty).

Answers: