BoomMenu icon indicating copy to clipboard operation
BoomMenu copied to clipboard

How to create TextInsideCircle for each circle?

Open hanifmhd opened this issue 8 years ago • 1 comments

I want to create 2 circle. For example : favorite and history. For each circle, there is the TextInsideCircle "favorite" for favorite and "history" for history.

hanifmhd avatar Sep 22 '17 18:09 hanifmhd

@hanifmhd Use this TextDrawable.java custom class to change SimpleCircleButton image to text.

BoomMenuButton bmb = (BoomMenuButton) findViewById(R.id.bmb); for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++){ TextDrawable textView = new TextDrawable(this); textView.setText("Text"); textView.setTextAlign(Layout.Alignment.ALIGN_CENTER); SimpleCircleButton.Builder newBuilder = new SimpleCircleButton.Builder(); newBuilder.normalImageDrawable(textView); bmb.addBuilder(newBuilder); }

holiboom avatar Jan 16 '18 09:01 holiboom