Dalam Talks ini kita akan membahas design pattern dan arsitektur yang dapat membantu pengembangan aplikasi android yang digunakan di industry-grade android apps.
and communication with the network and database layers. • View — the UI layer. Displays the data and notifies the Presenter about user actions. • Presenter — retrieves the data from the Model, applies the UI logic and manages the state of the View, decides what to display and reacts to user input notifications from the View.
the DataModel to get and save the data. • View: that informs the ViewModel about the user’s actions • View Model: exposes streams of data relevant to the View • Recommended by Google
observable, LiveData is lifecycle-aware, meaning it respects the lifecycle of other app components, such as activities, fragments, or services. This awareness ensures LiveData only updates app component observers that are in an active lifecycle state.
state • No memory leaks • No crashes due to stopped activities • No more manual lifecycle handling • Always up to date data • Proper configuration changes • Sharing resources
inspiration from JavaScript framework like React.js and Redux • Use functional principle • Used by Bukalapak but simplified Reference: http://hannesdorfmann.com/android/model-view-intent