How can I force a MaterialButtonToggleGroup to act like a RadioGroup as in having at least one selected item always? Setting setSingleSelection(true)
setSingleSelection(true)
If you really want to do this, you can go about it this way in Kotlin.
toggle_group.forEach { button -> button.setOnClickListener { (button as MaterialButton).isChecked = true } }
This will prevent second click unchecking.