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
  • Use BMB in List

Use BMB in List · Changes

Page history
Updated Use BMB in List (markdown) authored Dec 11, 2016 by Weiping Huang's avatar Weiping Huang
Hide whitespace changes
Inline Side-by-side
Use-BMB-in-List.md
View page @ b7aab590
Matters need attention when you need a BMB in list-view or recycler-view.
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/list-example.gif">
###Use BMB in List
To use BMB in list-view or recycler-view, we need to pay attention to the followings. Check the [list-view-demo](https://github.com/Nightonke/BoomMenu/blob/master/app/src/main/java/com/nightonke/boommenusample/ListViewActivity.java) and [recycler-view-demo](https://github.com/Nightonke/BoomMenu/blob/master/app/src/main/java/com/nightonke/boommenusample/RecyclerViewActivity.java) for details.
1. Set the BMB's in-list attribute by `app:bmb_inList="true"` or `bmb.setInList(true);` to remove background of BMB and get ready for some recycler jobs.
2. In `getView` method of list-view or in `onBindViewHolder` method in recycler-view, remove all the builders of BMB and then add builders to it again:
```
holder.bmb.clearBuilders();
for (int i = 0; i < holder.bmb.getPiecePlaceEnum().pieceNumber(); i++)
holder.bmb.addBuilder(BuilderManager.getHamButtonBuilder());
```
\ 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. 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 List
  16. Use BMB in Fragment
  17. Attributes for BMB or Pieces on BMB
  18. Cache Optimization & Boom Area
  19. Structure for BMB