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
  • Ham Button

Ham Button · Changes

Page history
Updated Ham Button (markdown) authored Apr 07, 2017 by Weiping Huang's avatar Weiping Huang
Show whitespace changes
Inline Side-by-side
Ham-Button.md
View page @ edd6c00c
......@@ -49,6 +49,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) {
// Whether the ham-button contains a sub text-view.
.containsSubText(true)
```
#### Shadow
```
// Whether the boom-button should have a shadow effect.
.shadowEffect(true)
......@@ -73,6 +74,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) {
// Set the color of the shadow of boom-button.
.shadowColor(Color.parseColor("#ee000000"))
```
#### Image
```
// Set the image resource when boom-button is at normal-state.
.normalImageRes(R.drawable.jellyfish)
......@@ -111,6 +113,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) {
// image-view content 10-pixel padding to itself.
.imagePadding(new Rect(0, 0, 0, 0))
```
#### Text
```
// Set the text resource when boom-button is at normal-state.
.normalTextRes(R.string.text_ham_button_text_normal)
......@@ -193,6 +196,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) {
// Set the text size of the text-view.
.textSize(10)
```
#### Sub-Text
```
// Set the sub-text resource when boom-button is at normal-state.
.subNormalTextRes(R.string.text_ham_button_sub_text_normal)
......@@ -275,6 +279,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) {
// Set the text size of the sub-text-view.
.subTextSize(10)
```
#### Button
```
// Whether the boom-button should have a ripple effect.
.rippleEffect(true)
......
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