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)
Now you can achieve it using the app:selectionRequired attribute. Something like:
app:selectionRequired
Also you can programmatically use the method setSelectionRequired:
setSelectionRequired
buttonGroup.setSelectionRequired(true);
Please note that this attribute requires a minimum of version 1.2.0-alpha03