Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B BoomMenu
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 114
    • Issues 114
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • 黄伟平
  • BoomMenu
  • Wiki
  • Cache Optimization & Boom Area

Cache Optimization & Boom Area · Changes

Page history
Updated Cache Optimization & Boom Area (markdown) authored Dec 11, 2016 by Weiping Huang's avatar Weiping Huang
Hide whitespace changes
Inline Side-by-side
Cache-Optimization-&-Boom-Area.md
View page @ 89aefd58
What if I want BMB to boom in just its parent-view?
###Cache Optimization
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](https://github.com/Nightonke/BoomMenu/wiki/Use-BMB-in-Fragment) or [in list](https://github.com/Nightonke/BoomMenu/wiki/Use-BMB-in-List)(list-view/recycler-view), cache optimization is turned off automatically.
###Boom Area
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"
```
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/whole-screen/whole-screen-true.png" width="300">
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/whole-screen/whole-screen-false.png" width="300">
Boom-buttons in left picture are in whole screen, and the rights are just in their parent-view(the fragment below action-bar).
\ No newline at end of file
Clone repository

#####Documentation Chapters

  1. Basic Usage
  2. Simple Circle Button
  3. Text Inside Circle Button
  4. Text Outside Circle Button
  5. Ham Button
  6. Share Style
  7. Button Place Alignments
  8. Different Ways to Boom
  9. Ease Animations for Buttons
  10. Other Animations Attributes for Buttons
  11. Click Event and Listener
  12. Control BMB
  13. Use BMB in Action Bar
  14. Use BMB in List
  15. Use BMB in Fragment
  16. Attributes for BMB or Pieces on BMB
  17. Cache Optimization & Boom Area
  18. Structure for BMB