-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Cache Optimization & Boom Area
Weiping Huang edited this page Mar 28, 2017
·
3 revisions
What if I want BMB to boom in just its parent-view?
In BMB, cache optimization is apply for avoiding re-create boom-buttons every time it booms. With cache optimization, boom-buttons will not be removed so that they are not necessary to re-create, which can optimize the resource. The default value for cache optimization is true, you can turn it off by:
bmb.setCacheOptimization(false);
Or in .xml:
app:bmb_cacheOptimization="false"
Notice that when bmb is used in fragment or in list(list-view/recycler-view), cache optimization is turned off automatically.
Sometimes, maybe you want bmb to boom in its parent-view. Use the following code to do that:
bmb1.setBoomInWholeScreen(false);
Or in .xml:
app:bmb_boomInWholeScreen="false"
Boom-buttons in left picture are in whole screen, and the rights are just in their parent-view(the fragment below action-bar).
- Basic Usage
- Simple Circle Button
- Text Inside Circle Button
- Text Outside Circle Button
- Ham Button
- Share Style
- Custom Position
- Button Place Alignments
- Different Ways to Boom
- Ease Animations for Buttons
- Different Order for Buttons
- Other Animations Attributes for Buttons
- Click Event and Listener
- Control BMB
- Use BMB in Action Bar
- Use BMB in Tool Bar
- Use BMB in List
- Use BMB in Fragment
- Attributes for BMB or Pieces on BMB
- Cache Optimization & Boom Area
- Change Boom Buttons Dynamically
- Fade Views
- Version History
- Structure for BMB