ceryle / SegmentedButton

Segmented Control with animation for Android API 12+
Apache License 2.0
364 stars 97 forks source link

setEnabled() does not work #11

Closed DonatelloX closed 7 years ago

DonatelloX commented 7 years ago

The SegmentedButton is a beautiful control for Android. In some cases, I would like to disable the control. But the setEnabled(false) command does not work. Please, can someone help me? Thank you Regards, Donatello

ceryle commented 7 years ago

Thank you Donatello. You can disable buttons with setClickable or setEnabled methods and also you can do the same thing in xml with android:clickable and sbg_enable attributes. Currently, there is no grayish disabled display when you setEnabled to false. However, I am planning to add it in next release.