-
Notifications
You must be signed in to change notification settings - Fork 25
Spotify Clone App: Lesson 5
Mert Şimşek edited this page Oct 14, 2019
·
5 revisions
In this lesson, we will learn
- Android Architecture Components basics
- Activity and Fragment lifecycle
- Rotation support using ViewModel
- Reactive UI using LiveData
- Fragment without memory leak
Users are generally interrupted by other applications(incoming calls, music player app to skip to the next song, etc.). So Is your app ready for those scenarios? ViewModel and LiveData come to help in these situations. They provide us a way to save loaded data in a LiveData and keep ViewModel instance even if user changes device orientation.
End of this lesson, our app will be lifecycle aware and memory efficient.
implementation "androidx.lifecycle:lifecycle-extensions:2.1.0"
kapt "androidx.lifecycle:lifecycle-compiler:2.1.0"
- Will be available on youtube soon.