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 Mar 28, 2017 by Weiping Huang's avatar Weiping Huang
Hide whitespace changes
Inline Side-by-side
Cache-Optimization-&-Boom-Area.md
View page @ db05c782
What if I want BMB to boom in just its parent-view?
###Cache Optimization
### 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);
......@@ -11,7 +11,7 @@ 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
### Boom Area
Sometimes, maybe you want bmb to boom in its parent-view. Use the following code to do that:
```
bmb1.setBoomInWholeScreen(false);
......
Clone repository
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. Different Order for Buttons
  11. Other Animations Attributes for Buttons
  12. Click Event and Listener
  13. Control BMB
  14. Use BMB in Action Bar
  15. Use BMB in Tool Bar
  16. Use BMB in List
  17. Use BMB in Fragment
  18. Attributes for BMB or Pieces on BMB
  19. Cache Optimization & Boom Area
  20. Version History
  21. Structure for BMB
  22. Change Boom Buttons Dynamically