https://kotlinlang.org logo
Title
u

user

06/22/2022, 12:11 AM
Using SharedPreferences With CheckBoxes And RecyclerView (Kotlin) I am making an Android app in Android Studio using Kotlin. I have a to-do list of 8 checkboxes and I want to use SharedPreferences to save the state of the checkboxes when switching between activities. I do not want to save the states when closing the app! Only when I am switching between activities. Here is a portion of the RecyclerView adapter: var checkBoxStateArray = SparseBooleanArray() override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { val...