Join Slack
Powered by
What should I use to save a switch button state in...
# android
s
Seuan Rahman
03/19/2021, 12:36 PM
What should I use to save a switch button state in the app? Im only finding how to do it in java and not kotlin on the web
f
Farid Mrz
03/22/2021, 8:33 AM
Save the state in the viewmodel and update your view according to the state in the viewmodel.
s
Seuan Rahman
03/22/2021, 8:37 AM
I cant find a Kotlin guide to do this, do you know any?
f
Farid Mrz
03/22/2021, 9:25 AM
https://developer.android.com/jetpack/compose/architecture
9
Views
Open in Slack
Previous
Next