I implemented RecyclerView and I installed it to use CAB . But how can I highlight selected items? If a specific position that I checked, I saved in a SparseBooleanArray . My first thought was to save a specific View containing all the elements in my ViewHolder , and then set the background to something like onBindViewHolder ?android:attr/activatedBackgroundIndicator But how can I do this? Is this a useful approach?
android android-recyclerview cab
Paul woitaschek
source share