I\'m trying to make a recyclerview filter based ChipGroup & Chip
I\'m use fragment on my app, so, the fragment who contain the RecyclerView contain a fr
All chips need to have the android:checkable="true" property for the trigger to exist on them.
In adittion to setting the initial check of any chip (without giving a tap), the order of execution must be first the creation of the listener with chipGroup.setOnCheckedChangeListener() and then chip.isChecked = true.
So you could handle the checkable property from the xml and isChecked dynamically.
binding.chipGroup.setOnCheckedChangeListener { chipGroup, i ->
}
binding.firstChip.isChecked = true //default
GL