android-circlebutton icon indicating copy to clipboard operation
android-circlebutton copied to clipboard

Cannot set text to the button.

Open RohitK1992 opened this issue 8 years ago • 1 comments

Is there any way I can set text to the button.

RohitK1992 avatar Apr 20 '17 10:04 RohitK1992

@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);

holiboom avatar Jan 26 '18 02:01 holiboom