GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Share Style

Share Style

Jump to bottom
Weiping Huang edited this page Mar 28, 2017 · 3 revisions

Make a share-style BMB.

Share Style

BMB is able to act as a share-action-button. Check the demo for details.

  1. Set the piece-place-enum of BMB to share-style.
bmb1.setPiecePlaceEnum(PiecePlaceEnum.Share);

Or in .xml:

app:bmb_piecePlaceEnum="piecePlace_share"
  1. Add builders.
    Notice that the number of builders must in range [3, 9]. And don't try to use PiecePlaceEnum.Share.pieceNumber() to make a add-builder-loop, because PiecePlaceEnum.Share.pieceNumber() equals -1. You should use bmb.getButtonPlaceEnum().buttonNumber():
for (int i = 0; i < bmb.getButtonPlaceEnum().buttonNumber(); i++)
    bmb.addBuilder(BuilderManager.getTextInsideCircleButtonBuilder());
  1. (Optional)Customize your share style BMB.
bmb.setShareLineLength(45);
bmb.setShareLineWidth(5);
bmb.setDotRadius(12);
bmb.setShareLine1Color(Color.BLACK);
bmb.setShareLine2Color(Color.BLACK);

Or in .xml:

app:bmb_sharedLineLength="10dp"
app:bmb_shareLineWidth="2dp"
app:bmb_dotRadius="4dp"
app:bmb_shareLine1Color="@android:color/holo_orange_light"
app:bmb_shareLine2Color="@android:color/holo_orange_dark"

Developer Demo Download Lisense

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. Custom Position
  8. Button Place Alignments
  9. Different Ways to Boom
  10. Ease Animations for Buttons
  11. Different Order for Buttons
  12. Other Animations Attributes for Buttons
  13. Click Event and Listener
  14. Control BMB
  15. Use BMB in Action Bar
  16. Use BMB in Tool Bar
  17. Use BMB in List
  18. Use BMB in Fragment
  19. Attributes for BMB or Pieces on BMB
  20. Cache Optimization & Boom Area
  21. Change Boom Buttons Dynamically
  22. Fade Views
  23. Version History
  24. Structure for BMB

Clone this wiki locally

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.