... | ... | @@ -28,18 +28,32 @@ Set button-enum for BMB, button-enum tells which kind of boom-button(the sub-but |
|
|
```
|
|
|
bmb.setButtonEnum(ButtonEnum.SimpleCircle);
|
|
|
```
|
|
|
Or in .xml:
|
|
|
|
|
|
1. `app:bmb_buttonEnum="simpleCircle"`
|
|
|
2. `app:bmb_buttonEnum="textInsideCircle"`
|
|
|
3. `app:bmb_buttonEnum="textOutsideCircle"`
|
|
|
4. `app:bmb_buttonEnum="ham"`
|
|
|
|
|
|
Then you need to tell BMB how it should place pieces on itself. Click the links for 4 kinds of buttons above to check different piece-place-enums.
|
|
|
|
|
|
```
|
|
|
bmb.setPiecePlaceEnum(PiecePlaceEnum.DOT_3_1);
|
|
|
```
|
|
|
Or in .xml:
|
|
|
```
|
|
|
app:bmb_piecePlaceEnum="piecePlace_dot_3_1"
|
|
|
```
|
|
|
|
|
|
Now tell BMB how to place the buttons on the screen when booming. Click the links for 4 kinds of buttons above to check different button-place-enums.
|
|
|
|
|
|
```
|
|
|
bmb.setButtonPlaceEnum(ButtonPlaceEnum.SC_3_3);
|
|
|
```
|
|
|
Or in .xml:
|
|
|
```
|
|
|
app:bmb_buttonPlaceEnum="buttonPlace_sc_3_3"
|
|
|
```
|
|
|
|
|
|
###Add Builders
|
|
|
You have set attributes for BMB itself, now add builders for customizing boom-buttons to BMB. There are 4 different builders for the 4 kinds of boom-buttons above. For instance, use `SimpleCircleButton.Builder` for `ButtonEnum.SimpleCircle`. Click the links for 4 kinds of buttons above to find out how to use builders.
|
... | ... | |