android-circlebutton
android-circlebutton copied to clipboard
Cannot set text to the button.
Is there any way I can set text to the button.
@RohitK1992 Use this TextDrawable.java custom class to set text to CircleButton.
CircleButton circleButton = findViewById(R.id.cbcircle);
TextDrawable text= new TextDrawable(this);
text.setText("Hi");
circleButton.setImageDrawable(text);