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

A method to check if a button is checked. #35

Closed YogevUzan closed 6 years ago

YogevUzan commented 6 years ago

Hi, Can you please add a isChecked method? Something like this

boolean isChecked= toggleGroup.isButtonChecked(int id)?

nex3z commented 6 years ago

I've added a isChecked(int childId) method in version 1.1.5. Try

implementation 'com.nex3z:toggle-button-group:1.1.5'
boolean isChecked = toggleGroup.isChecked(childId);
YogevUzan commented 6 years ago

Oh, you might want to change the version in the main page. Thank you very much!!