|
|
How to change the size or margins of dots on BMB?
|
|
|
|
|
|
###Attributes for BMB
|
|
|
### Attributes for BMB
|
|
|
We always talk about the attributes for boom-buttons of BMB, how about BMB itself?
|
|
|
|
|
|
####For BMB Itself
|
|
|
#### For BMB Itself
|
|
|
For shadow:
|
|
|
```
|
|
|
bmb.setShadowEffect(true);
|
... | ... | @@ -37,12 +37,13 @@ app:bmb_highlightedColor="@android:color/holo_blue_dark" |
|
|
app:bmb_unableColor="@android:color/white"
|
|
|
```
|
|
|
|
|
|
####For Pieces on BMB
|
|
|
#### For Pieces on BMB
|
|
|
For pieces lay on BMB:
|
|
|
```
|
|
|
bmb.setDotRadius(10);
|
|
|
bmb.setHamWidth(80);
|
|
|
bmb.setHamHeight(20);
|
|
|
bmb.setPieceCornerRadius(4);
|
|
|
bmb.setPieceHorizontalMargin(10);
|
|
|
bmb.setPieceVerticalMargin(10);
|
|
|
bmb.setPieceInclinedMargin(20);
|
... | ... | @@ -52,12 +53,20 @@ Or in .xml: |
|
|
app:bmb_dotRadius="5dp"
|
|
|
app:bmb_hamWidth="40dp"
|
|
|
app:bmb_hamHeight="5dp"
|
|
|
app:bmb_pieceCornerRadius="2dp"
|
|
|
app:bmb_pieceHorizontalMargin="5dp"
|
|
|
app:bmb_pieceVerticalMargin="5dp"
|
|
|
app:bmb_pieceInclinedMargin="5dp"
|
|
|
```
|
|
|
After setting the corner radius of the pieces:
|
|
|
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/pieceCornerRadius.png" width=500/>
|
|
|
|
|
|
####For Boom-Buttons on BMB
|
|
|
This attribute is useful when you want square buttons but not round:
|
|
|
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/square.png" width=500/>
|
|
|
|
|
|
For more information about square buttons, check
|
|
|
|
|
|
#### For Boom-Buttons on BMB
|
|
|
```
|
|
|
bmb.setButtonHorizontalMargin(50);
|
|
|
bmb.setButtonVerticalMargin(40);
|
... | ... | @@ -70,7 +79,7 @@ app:bmb_buttonVerticalMargin="20dp" |
|
|
app:bmb_buttonInclinedMargin="30dp"
|
|
|
```
|
|
|
|
|
|
####For Background Color When Booming
|
|
|
#### For Background Color When Booming
|
|
|
```
|
|
|
bmb.setDimColor(Color.parseColor("#55000000"))
|
|
|
```
|
... | ... | |