... | @@ -18,4 +18,19 @@ app:bmb_rotateDegree="1080" |
... | @@ -18,4 +18,19 @@ app:bmb_rotateDegree="1080" |
|
app:bmb_hideDelay="0"
|
|
app:bmb_hideDelay="0"
|
|
app:bmb_hideDuration="500"
|
|
app:bmb_hideDuration="500"
|
|
app:bmb_frames="60"
|
|
app:bmb_frames="60"
|
|
``` |
|
```
|
|
\ No newline at end of file |
|
|
|
|
|
### 3D Animation
|
|
|
|
From version 2.1.0, 3D animations of boom-buttons are supported:
|
|
|
|
```
|
|
|
|
bmb.setUse3DTransformAnimation(true); // Whether use a 3D transform animation when booming or rebooming.
|
|
|
|
```
|
|
|
|
Or in .xml:
|
|
|
|
```
|
|
|
|
app:bmb_use3DTransformAnimation="true"
|
|
|
|
```
|
|
|
|
|
|
|
|
[3D Animation Demo](https://github.com/Nightonke/BoomMenu/blob/master/app/src/main/java/com/nightonke/boommenusample/ThreeDAnimationActivity.java) shows the difference of 3D and 2D animations.
|
|
|
|
|
|
|
|
<img src="https://github.com/Nightonke/BoomMenuButton-Images/blob/master/Android/3DAnimationOn.gif" width=300/>
|
|
|
|
<img src="https://github.com/Nightonke/BoomMenuButton-Images/blob/master/Android/3DAnimationOff.gif" width=300/> |
|
|
|
\ No newline at end of file |