... | ... | @@ -19,7 +19,15 @@ Add BMB in .xml file. |
|
|
You can set button-enum, piece-place-enum and button-place-enum in .xml file with attributes or in .java file with setters. For more information and pictures about [piece-place-enum](https://github.com/Nightonke/BoomMenu/wiki/Simple-Circle-Button#piece-place-enum-for-simple-circle-button) and [button-place-enum](https://github.com/Nightonke/BoomMenu/wiki/Simple-Circle-Button#button-place-enum-for-simple-circle-button), check the tables below.
|
|
|
|
|
|
###Add Builders
|
|
|
The builder of simple circle button has lots of methods to customize the boom-buttons.
|
|
|
The builder of simple circle button has lots of methods to customize the boom-buttons. **Needn't to set every attributes for boom-buttons, just customize what you want.** For example:
|
|
|
```
|
|
|
for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) {
|
|
|
SimpleCircleButton.Builder builder = new SimpleCircleButton.Builder()
|
|
|
.normalImageRes(R.drawable.jellyfish);
|
|
|
bmb.addBuilder(builder);
|
|
|
}
|
|
|
```
|
|
|
But if you wanna customize more attributes:
|
|
|
```
|
|
|
for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) {
|
|
|
SimpleCircleButton.Builder builder = new SimpleCircleButton.Builder()
|
... | ... | @@ -99,14 +107,6 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) { |
|
|
bmb.addBuilder(builder);
|
|
|
}
|
|
|
```
|
|
|
**Needn't to set every attributes for boom-buttons, just customize what you want.** For example:
|
|
|
```
|
|
|
for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) {
|
|
|
SimpleCircleButton.Builder builder = new SimpleCircleButton.Builder()
|
|
|
.normalImageRes(R.drawable.jellyfish);
|
|
|
bmb.addBuilder(builder);
|
|
|
}
|
|
|
```
|
|
|
After adding builders to BMB, it is ready for a boom.
|
|
|
|
|
|
### Piece Place Enum for Simple Circle Button
|
... | ... | |