jeudi 17 octobre 2019

How to use SparseBooleanArray in Kotlin with CheckBox

I have found while scrolling Recyclerview, it lost checkboxes states. You can use SparseBooleanArray for storing Integer, Boolean values. I found code for Java on the web. But how to do that in Kotlin? Why SparseBooleanArray, what's wrong with HashMap?




Aucun commentaire:

Enregistrer un commentaire