RobertApikyan / SegmentedControl

Android SegmentedControl + multi row support
Apache License 2.0
162 stars 30 forks source link

unselect segment item by clicking doesn't works #35

Open raiarainne opened 3 years ago

raiarainne commented 3 years ago

There is a config method "setReselectionEnabled". I think this method is used to toggle each segment item's check/uncheck status by clicking on the segment item But it doesn't work

fefereliezer commented 3 years ago

You can add an addOnSegmentSelectListener with if (isSelected && isReselected){segment.clearSelection(false)