Tim
11/06/2019, 4:34 PMAlex Crafford
11/06/2019, 4:42 PMTim
11/06/2019, 4:43 PMtseisel
11/06/2019, 5:19 PMLoading implementation, and show a ProgressBar if it is Loading, and hide it otherwiseBrian
11/06/2019, 5:22 PMTim
11/06/2019, 5:24 PMandrew
11/06/2019, 10:14 PMandrew
11/06/2019, 10:15 PMVishnu Haridas
11/07/2019, 9:07 AMResource (like [1] from Google examples) class which can hold both state (LOADING, ERROR, SUCCESS etc.) and data. Then I will return a LiveData<Resource<List>> and observe it. Once the LD delivers an update, I will check the state inside the resource and update the UI accordingly.
[1] https://github.com/android/architecture-components-samples/blob/master/GithubBrowserSample/app/src/main/java/com/android/example/github/vo/Resource.kt