Skip to content

Fade Views

Weiping Huang edited this page May 26, 2017 · 2 revisions

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 for more details.