nex3z / ToggleButtonGroup

A group of flowable toggle buttons, with multiple / single selection support and button customization.
Apache License 2.0
421 stars 49 forks source link

MultiSelectToggleGroup with Minimum Select Count #28

Closed lucblender closed 6 years ago

lucblender commented 6 years ago

With using a MultiSelectToggleGroup, we can set a maximum select count with setMaxSelectCount but we can't "setMinSelectCount".

I tried to force the re-check of a LabelToggle in the OnCheckedChangeListener, and it doesn't update the UI of the MultiSelectToggleGroup but if using the getCheck of LabelToggle, it's state as changed.

nex3z commented 6 years ago

There was an issue with the order of the checked state notification, fixed in the v1.1.4 version.

compile 'com.nex3z:toggle-button-group:1.1.4'

demo