... | @@ -4,7 +4,7 @@ How to change the size or margins of dots on BMB? |
... | @@ -4,7 +4,7 @@ How to change the size or margins of dots on BMB? |
|
We always talk about the attributes for boom-buttons of BMB, how about BMB itself?
|
|
We always talk about the attributes for boom-buttons of BMB, how about BMB itself?
|
|
|
|
|
|
#### For BMB Itself
|
|
#### For BMB Itself
|
|
For shadow:
|
|
##### For shadow:
|
|
```
|
|
```
|
|
bmb.setShadowEffect(true);
|
|
bmb.setShadowEffect(true);
|
|
bmb.setShadowColor(Color.parseColor("#55000000"));
|
|
bmb.setShadowColor(Color.parseColor("#55000000"));
|
... | @@ -20,7 +20,7 @@ app:bmb_shadowOffsetX="5dp" |
... | @@ -20,7 +20,7 @@ app:bmb_shadowOffsetX="5dp" |
|
app:bmb_shadowOffsetY="5dp"
|
|
app:bmb_shadowOffsetY="5dp"
|
|
app:bmb_shadowRadius="10dp"
|
|
app:bmb_shadowRadius="10dp"
|
|
```
|
|
```
|
|
For BMB:
|
|
##### For button:
|
|
```
|
|
```
|
|
bmb.setButtonRadius(Util.dp2px(40));
|
|
bmb.setButtonRadius(Util.dp2px(40));
|
|
bmb.setRippleEffect(false);
|
|
bmb.setRippleEffect(false);
|
... | @@ -37,6 +37,18 @@ app:bmb_highlightedColor="@android:color/holo_blue_dark" |
... | @@ -37,6 +37,18 @@ app:bmb_highlightedColor="@android:color/holo_blue_dark" |
|
app:bmb_unableColor="@android:color/white"
|
|
app:bmb_unableColor="@android:color/white"
|
|
```
|
|
```
|
|
|
|
|
|
|
|
##### For draggable-BMB:
|
|
|
|
```
|
|
|
|
bmb.setDraggable(true);
|
|
|
|
bmb.setEdgeInsetsInParentView(new Rect(10, 10, 10, 10));
|
|
|
|
```
|
|
|
|
Or in .xml:
|
|
|
|
```
|
|
|
|
app:bmb_draggable="true"
|
|
|
|
```
|
|
|
|
The effect of [draggable-BMB](https://github.com/Nightonke/BoomMenu/blob/master/app/src/main/java/com/nightonke/boommenusample/DraggableActivity.java) looks like below:
|
|
|
|
<img src="https://github.com/Nightonke/BoomMenuButton-Images/blob/master/Android/Draggable.gif" width="300">
|
|
|
|
|
|
#### For Pieces on BMB
|
|
#### For Pieces on BMB
|
|
For pieces lay on BMB:
|
|
For pieces lay on BMB:
|
|
```
|
|
```
|
... | | ... | |