... | @@ -265,3 +265,14 @@ ButtonPlaceEnum.Horizontal puts boom-buttons in a horizontal line, notice that ` |
... | @@ -265,3 +265,14 @@ ButtonPlaceEnum.Horizontal puts boom-buttons in a horizontal line, notice that ` |
|
8. ButtonPlaceEnum.Vertical(in .java) or bmb_buttonPlace_vertical(in .xml)
|
|
8. ButtonPlaceEnum.Vertical(in .java) or bmb_buttonPlace_vertical(in .xml)
|
|
ButtonPlaceEnum.Vertical puts boom-buttons in a vertical line, notice that `ButtonPlaceEnum.Vertical.buttonNumber()` returns `Integer.MAX_VALUE`.
|
|
ButtonPlaceEnum.Vertical puts boom-buttons in a vertical line, notice that `ButtonPlaceEnum.Vertical.buttonNumber()` returns `Integer.MAX_VALUE`.
|
|
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/ham-button/vertical.png">
|
|
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/ham-button/vertical.png">
|
|
|
|
|
|
|
|
### The Special Boom-Button
|
|
|
|
Sometimes we need to add a boom-button with "Cancel" on the last boom-button(the bottom one). And maybe the last one should have a larger top-margin with its above one. Then you can set this special attribute by:
|
|
|
|
```
|
|
|
|
bmb.setBottomHamButtonTopMargin(Util.dp2px(50));
|
|
|
|
```
|
|
|
|
Or in .xml:
|
|
|
|
```
|
|
|
|
app:bmb_bottomHamButtonTopMargin="50dp"
|
|
|
|
```
|
|
|
|
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/bottom-ham-top-margin.png" width="300"> |
|
|
|
\ No newline at end of file |