Skip to content

Asad-noor/android-viewmodel-example

Repository files navigation

android-viewmodel-example

This project is about simple and quick example of using ViewModel and LiveData where I am updating the TextView on every second which start/stop with button click and this countdown will not be reset in configuration changes like device rotation.

Also the scope of viewmodel is specified here which is very important to understand. Sample screenshot

About

Necessity of ViewModel and usage of MutableLiveData with timer and elapsed time display.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages