... | ... | @@ -21,7 +21,7 @@ You can set button-enum, piece-place-enum and button-place-enum in .xml file wit |
|
|
###Add Builders
|
|
|
The builder of simple circle button has lots of methods to customize the boom-buttons.
|
|
|
```
|
|
|
for (int i = 0; i < bmb.getButtonPlaceEnum().buttonNumber(); i++) {
|
|
|
for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) {
|
|
|
SimpleCircleButton.Builder builder = new SimpleCircleButton.Builder()
|
|
|
.listener(new OnBMClickListener() {
|
|
|
@Override
|
... | ... | @@ -79,9 +79,9 @@ for (int i = 0; i < bmb.getButtonPlaceEnum().buttonNumber(); i++) { |
|
|
bmb.addBuilder(builder);
|
|
|
}
|
|
|
```
|
|
|
Don't need to set every attributes for boom-buttons, just customize what you want. For example:
|
|
|
**Don't need to set every attributes for boom-buttons, just customize what you want.** For example:
|
|
|
```
|
|
|
for (int i = 0; i < bmb.getButtonPlaceEnum().buttonNumber(); i++) {
|
|
|
for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) {
|
|
|
SimpleCircleButton.Builder builder = new SimpleCircleButton.Builder()
|
|
|
.normalImageRes(R.drawable.jellyfish);
|
|
|
bmb.addBuilder(builder);
|
... | ... | @@ -95,7 +95,7 @@ All piece-place-enum and button-place-enum can be found in [demo](https://github |
|
|
1. PiecePlaceEnum.DOT_1(in .java) or bmb_piecePlace_dot_1(in .xml)
|
|
|
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/piece-place-enum/piece-place-enum-dot-1.png" width="100">
|
|
|
2. PiecePlaceEnum.DOT_2_M(in .java) or bmb_piecePlace_dot_2_M(in .xml)
|
|
|
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/piece-place-enum/piece-place-enum-dot-2-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/piece-place-enum/piece-place-enum-dot-2-2.png" width="100"> |
|
|
|
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/piece-place-enum/piece-place-enum-dot-2-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/piece-place-enum/piece-place-enum-dot-2-2.png" width="100">
|
|
|
3. PiecePlaceEnum.DOT_3_M(in .java) or bmb_piecePlace_dot_3_M(in .xml)
|
|
|
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/piece-place-enum/piece-place-enum-dot-3-1.png" width="100"><img
|
|
|
src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/piece-place-enum/piece-place-enum-dot-3-2.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/piece-place-enum/piece-place-enum-dot-3-3.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/piece-place-enum/piece-place-enum-dot-3-4.png" width="100">
|
... | ... | @@ -118,7 +118,7 @@ All piece-place-enum and button-place-enum can be found in [demo](https://github |
|
|
1. ButtonPlaceEnum.SC_1(in .java) or bmb_buttonPlace_sc_1(in .xml)
|
|
|
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-1.png" width="100">
|
|
|
2. ButtonPlaceEnum.SC_2_M(in .java) or bmb_buttonPlace_sc_2_M(in .xml)
|
|
|
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-2-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-2-2.png" width="100"> |
|
|
|
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-2-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-2-2.png" width="100">
|
|
|
3. ButtonPlaceEnum.SC_3_M(in .java) or bmb_buttonPlace_sc_3_M(in .xml)
|
|
|
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-3-1.png" width="100"><img
|
|
|
src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-3-2.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-3-3.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-3-4.png" width="100">
|
... | ... | |