This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Below are some MVI generic classes that can be used almost as is in any project. | |
| They are useful to handle Data/Resource State during transfer between ViewModel, Repository and UI. | |
| These classes are copied from Mitch Tabian GitHub: | |
| https://github.com/mitchtabian | |
| StateResource.kt | |
| Wraps around response from Repository calls to allow 2 major behaviours: | |
| 1. UI update (Do we display a loading wheel ?/ The Data itself ?/ or nothing? depending on the state) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This code is originally from Architecture components google sample: | |
| https://github.com/googlesamples/android-architecture-components/blob/master/GithubBrowserSample/app/src/main/java/com/android/example/github/api/ApiResponse.kt | |
| And/or from Mitch Tabian GitHub: | |
| https://github.com/mitchtabian | |
| It helps in managing responses from retrofit calls and can be used as is in any project. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This Gist is a list of animations for Android apps. It can be reused. | |
| These files where copied from Mitch Tabian GitHub: https://github.com/mitchtabian | |
| More specifically from this project: https://github.com/mitchtabian/Open-API-Android-App/tree/Starting-Point/app/src/main/res/anim |