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
  • Attributes for BMB or Pieces on BMB

Attributes for BMB or Pieces on BMB · Changes

Page history
Updated Attributes for BMB or Pieces on BMB (markdown) authored May 27, 2017 by Weiping Huang's avatar Weiping Huang
Hide whitespace changes
Inline Side-by-side
Attributes-for-BMB-or-Pieces-on-BMB.md
View page @ d222dde1
...@@ -4,7 +4,7 @@ How to change the size or margins of dots on BMB? ...@@ -4,7 +4,7 @@ How to change the size or margins of dots on BMB?
We always talk about the attributes for boom-buttons of BMB, how about BMB itself? We always talk about the attributes for boom-buttons of BMB, how about BMB itself?
#### For BMB Itself #### For BMB Itself
For shadow: ##### For shadow:
``` ```
bmb.setShadowEffect(true); bmb.setShadowEffect(true);
bmb.setShadowColor(Color.parseColor("#55000000")); bmb.setShadowColor(Color.parseColor("#55000000"));
...@@ -20,7 +20,7 @@ app:bmb_shadowOffsetX="5dp" ...@@ -20,7 +20,7 @@ app:bmb_shadowOffsetX="5dp"
app:bmb_shadowOffsetY="5dp" app:bmb_shadowOffsetY="5dp"
app:bmb_shadowRadius="10dp" app:bmb_shadowRadius="10dp"
``` ```
For BMB: ##### For button:
``` ```
bmb.setButtonRadius(Util.dp2px(40)); bmb.setButtonRadius(Util.dp2px(40));
bmb.setRippleEffect(false); bmb.setRippleEffect(false);
...@@ -37,6 +37,18 @@ app:bmb_highlightedColor="@android:color/holo_blue_dark" ...@@ -37,6 +37,18 @@ app:bmb_highlightedColor="@android:color/holo_blue_dark"
app:bmb_unableColor="@android:color/white" app:bmb_unableColor="@android:color/white"
``` ```
##### For draggable-BMB:
```
bmb.setDraggable(true);
bmb.setEdgeInsetsInParentView(new Rect(10, 10, 10, 10));
```
Or in .xml:
```
app:bmb_draggable="true"
```
The effect of [draggable-BMB](https://github.com/Nightonke/BoomMenu/blob/master/app/src/main/java/com/nightonke/boommenusample/DraggableActivity.java) looks like below:
<img src="https://github.com/Nightonke/BoomMenuButton-Images/blob/master/Android/Draggable.gif" width="300">
#### For Pieces on BMB #### For Pieces on BMB
For pieces lay on BMB: For pieces lay on BMB:
``` ```
......
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