|
|
// Todo |
|
|
\ No newline at end of file |
|
|
<img src="https://github.com/Nightonke/BoomMenuButton-Images/blob/master/Android/FadeViews.gif" width=300>
|
|
|
|
|
|
Add faded views on BMB.
|
|
|
|
|
|
### Fade Views on BMB
|
|
|
Sometimes you may wanna add an image or text to BMB. This can be achieved by:
|
|
|
```
|
|
|
<com.nightonke.boommenu.BoomMenuButton
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
app:bmb_dotRadius="0dp">
|
|
|
|
|
|
<ImageView
|
|
|
android:layout_width="40dp"
|
|
|
android:layout_height="40dp"
|
|
|
android:src="@drawable/butterfly"
|
|
|
android:layout_gravity="center" />
|
|
|
|
|
|
</com.nightonke.boommenu.BoomMenuButton>
|
|
|
```
|
|
|
The fade-views added to BMB will perform fade-in and fade-out animations when booming and rebooming. When BMB has a fade-view, you may want to remove the pieces. BMB does not provide any methods to remove pieces, but there is a trick to do so:
|
|
|
```
|
|
|
app:bmb_dotRadius="0dp"
|
|
|
```
|
|
|
Check [demo](https://github.com/Nightonke/BoomMenu/blob/master/app/src/main/java/com/nightonke/boommenusample/FadeViewsActivity.java) for more details. |
|
|
\ No newline at end of file |