-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Use BMB in List
Weiping Huang edited this page Mar 28, 2017
·
3 revisions
Matters need attention when you need a BMB in list-view or recycler-view.
To use BMB in list-view or recycler-view, we need to pay attention to the followings. Check the list-view-demo and recycler-view-demo for details.
- Set the BMB's in-list attribute by
app:bmb_inList="true"
orbmb.setInList(true);
to remove background of BMB and get ready for some recycler jobs. - In
getView
method of list-view or inonBindViewHolder
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());
- 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