Skip to content

Different Ways to Boom

Weiping Huang edited this page May 13, 2017 · 4 revisions

Different animations when the buttons boom or re-boom.

Boom Enum

To make BMB boom more vivider and more interesting, you can choose the following boom-enums by:

bmb.setBoomEnum(BoomEnum.HORIZONTAL_THROW_1);

Or in .xml:

app:bmb_boomEnum="boomHorizontalThrow_1"

The default value is BoomEnum.HORIZONTAL_THROW_2, check the effects and enums below:

  1. BoomEnum.LINE(in .java) or app:bmb_boomEnum="boomLine"(in .xml)
  1. BoomEnum.PARABOLA_1(in .java) or app:bmb_boomEnum="boomParabola_1"(in .xml)
  1. BoomEnum.PARABOLA_2(in .java) or app:bmb_boomEnum="boomParabola_2"(in .xml)
  1. BoomEnum.PARABOLA_3(in .java) or app:bmb_boomEnum="boomParabola_3"(in .xml)
  1. BoomEnum.PARABOLA_4(in .java) or app:bmb_boomEnum="boomParabola_4"(in .xml)
  1. BoomEnum.HORIZONTAL_THROW_1(in .java) or app:bmb_boomEnum="boomHorizontalThrow_1"(in .xml)
  1. BoomEnum.HORIZONTAL_THROW_2(in .java) or app:bmb_boomEnum="boomHorizontalThrow_2"(in .xml)
  1. BoomEnum.RANDOM(in .java) or app:bmb_boomEnum="boomRandom"(in .xml)
    This boom-enum will randomly pick up the other boom-enums to make animations.