You have used ViewModel many times, but do you truly know what purpose it serves, how it is created and how it survives rotation? In day-to-day Android work, we usually create ViewModels in different ways: Directly with ViewModelProvider: val vm = ...

Markdown supported · ⌘↵ to post
No responses yet.