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
  • Text Inside Circle Button

Text Inside Circle Button · Changes

Page history
Updated Text Inside Circle Button (markdown) authored Dec 10, 2016 by Weiping Huang's avatar Weiping Huang
Hide whitespace changes
Inline Side-by-side
Text-Inside-Circle-Button.md
View page @ 4aa5a182
......@@ -21,7 +21,7 @@ You can set button-enum, piece-place-enum and button-place-enum in .xml file wit
###Add Builders
The builder of text inside circle button has lots of methods to customize the boom-buttons.
```
for (int i = 0; i < bmb.getButtonPlaceEnum().buttonNumber(); i++) {
for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) {
TextInsideCircleButton.Builder builder = new TextInsideCircleButton.Builder()
.listener(new OnBMClickListener() {
@Override
......@@ -158,7 +158,7 @@ for (int i = 0; i < bmb.getButtonPlaceEnum().buttonNumber(); i++) {
```
**Don't need to set every attributes for boom-buttons, just customize what you want.** For example:
```
for (int i = 0; i < bmb.getButtonPlaceEnum().buttonNumber(); i++) {
for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) {
TextInsideCircleButton.Builder builder = new TextInsideCircleButton.Builder()
.normalImageRes(R.drawable.butterfly)
.normalText("Butter Doesn't fly!");
......@@ -194,22 +194,22 @@ src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/piece-place-enum
All piece-place-enum and button-place-enum can be found in [demo](https://github.com/Nightonke/BoomMenu/blob/master/app/src/main/java/com/nightonke/boommenusample/TextInsideCircleButtonActivity.java).
1. ButtonPlaceEnum.SC_1(in .java) or bmb_buttonPlace_sc_1(in .xml)
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-1.png" width="100">
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-1.png" width="100">
2. ButtonPlaceEnum.SC_2_M(in .java) or bmb_buttonPlace_sc_2_M(in .xml)
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-2-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-2-2.png" width="100">
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-2-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-2-2.png" width="100">
3. ButtonPlaceEnum.SC_3_M(in .java) or bmb_buttonPlace_sc_3_M(in .xml)
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-3-1.png" width="100"><img
src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-3-2.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-3-3.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-3-4.png" width="100">
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-3-1.png" width="100"><img
src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-3-2.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-3-3.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-3-4.png" width="100">
4. ButtonPlaceEnum.SC_4_M(in .java) or bmb_buttonPlace_sc_4_M(in .xml)
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-4-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-4-2.png" width="100">
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-4-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-4-2.png" width="100">
5. ButtonPlaceEnum.SC_5_M(in .java) or bmb_buttonPlace_sc_5_M(in .xml)
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-5-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-5-2.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-5-3.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-5-4.png" width="100">
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-5-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-5-2.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-5-3.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-5-4.png" width="100">
6. ButtonPlaceEnum.SC_6_M(in .java) or bmb_buttonPlace_sc_6_M(in .xml)
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-6-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-6-2.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-6-3.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-6-4.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-6-5.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-6-6.png" width="100">
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-6-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-6-2.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-6-3.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-6-4.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-6-5.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-6-6.png" width="100">
7. ButtonPlaceEnum.SC_7_M(in .java) or bmb_buttonPlace_sc_7_M(in .xml)
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-7-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-7-2.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-7-3.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-7-4.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-7-5.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-7-6.png" width="100">
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-7-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-7-2.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-7-3.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-7-4.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-7-5.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-7-6.png" width="100">
8. ButtonPlaceEnum.SC_8_M(in .java) or bmb_buttonPlace_sc_8_M(in .xml)
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-8-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-8-2.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-8-3.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-8-4.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-8-5.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-8-6.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-8-7.png" width="100">
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-8-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-8-2.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-8-3.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-8-4.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-8-5.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-8-6.png" width="100"> <img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-8-7.png" width="100">
9. ButtonPlaceEnum.SC_9_M(in .java) or bmb_buttonPlace_sc_9_M(in .xml)
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-9-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-9-2.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/button-place-enum-sc-9-3.png" width="100">
<img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-9-1.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-9-2.png" width="100"><img src="https://github.com/Nightonke/BoomMenu/blob/master/Pictures/button-place-enum/text-inside-circle-button/button-place-enum-sc-9-3.png" width="100">
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. Other Animations Attributes for Buttons
  11. Click Event and Listener
  12. Control BMB
  13. Use BMB in Action Bar
  14. Use BMB in List
  15. Use BMB in Fragment
  16. Attributes for BMB or Pieces on BMB
  17. Cache Optimization & Boom Area
  18. Structure for BMB