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

bold text in CircularToggle button #34

Closed songuyen1816 closed 6 years ago

songuyen1816 commented 6 years ago

i can't set bold style text in CircularToggle button T_T , how to set it? sorry for my English!

nex3z commented 6 years ago

Call getTextView() on CircularToggle to retrieve the embedded TextView, then use setTypeface(Typeface tf, int style) to set text style.

CircularToggle toggle = findViewById(R.id.choice_a);
toggle.getTextView().setTypeface(Typeface.DEFAULT, Typeface.BOLD);