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
  • Basic Usage

Basic Usage · Changes

Page history
Created Basic Usage (markdown) authored Dec 07, 2016 by Weiping Huang's avatar Weiping Huang
Hide whitespace changes
Inline Side-by-side
Basic-Usage.md 0 → 100644
View page @ 16129ea5
This chapter covers the basic setup for using this library.
###Creating BMB
Add BMB in .xml file.
```
<com.nightonke.boommenu.BoomMenuButton
android:id="@+id/bmb"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
```
Then in .java file, find your BMB and set some attributes for it.
```
BoomMenuButton bmb = (BoomMenuButton) findViewById(R.id.bmb);
```
Set button-enum for BMB, button-enum tells which kind of boom-button(the sub-buttons when booming) that you want.
1. `ButtonEnum.SimpleCircle` corresponding to [Simple Circle Button]()
```
bmb.setButtonEnum(ButtonEnum.SimpleCircle);
```
bmb.setButtonEnum(ButtonEnum.SimpleCircle);
bmb.setPiecePlaceEnum(PiecePlaceEnum.DOT_1);
bmb.setButtonPlaceEnum(ButtonPlaceEnum.SC_1);
```
\ No newline at end of file
Clone repository
  • Attributes for BMB or Pieces on BMB
  • Basic Usage
  • Button Place Alignments
  • Cache Optimization & Boom Area
  • Change Boom Buttons Dynamically
  • Click Event and Listener
  • Control BMB
  • Custom Position
  • Different Order for Buttons
  • Different Ways to Boom
  • Ease Animations for Buttons
  • Fade Views
  • Ham Button
  • Home
  • Other Animations Attributes for Buttons
View All Pages