nex3z / ToggleButtonGroup

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

Possible to have different colors for border and background color when selected? #27

Closed drunkendaddy closed 6 years ago

nex3z commented 6 years ago

If you are using CircularToggle, you can use setCheckedImageDrawable(Drawable drawable) to change the default background for the checked state.

CircularToggle toggle = findViewById(R.id.choice_a);
toggle.setCheckedImageDrawable(ContextCompat.getDrawable(this, R.drawable.bg_circle));

Please feel free to build your own custom button that best suits your needs.