MVVM based👩💻 android project✔✨ via view binding🧬🧬 and view model
Show My Age 🧒 Android project
Language Used
- Kotlin
Mini project for beginner trying to implement MVVM and viewbinding
Usuages :
- user need to input the year of birth
- accordingly, your age is displayed on clicking show My Age button
Layout used :
- Constraint Layout
- ScrollView (so user if rotate screen , can scroll freely , resulting flexible layout)
Why MVVM
If the user rotates the activity is stopped and started again. so the data is lost and user need to click button again.thus to save livedata , I have used viewModel .
app layout
- Home Layout
Photo by Olivia Herlambang-Tham on Unsplash
- OnClick button layout
Photo by Edgar Soto on Unsplash
Thank you for going through the project 🙂