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
  • Fade Views

Fade Views · Changes

Page history
Updated Fade Views (markdown) authored May 27, 2017 by Weiping Huang's avatar Weiping Huang
Hide whitespace changes
Inline Side-by-side
Fade-Views.md
View page @ b486bc27
// Todo
\ No newline at end of file
<img src="https://github.com/Nightonke/BoomMenuButton-Images/blob/master/Android/FadeViews.gif" width=300>
Add faded views on BMB.
### Fade Views on BMB
Sometimes you may wanna add an image or text to BMB. This can be achieved by:
```
<com.nightonke.boommenu.BoomMenuButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:bmb_dotRadius="0dp">
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:src="@drawable/butterfly"
android:layout_gravity="center" />
</com.nightonke.boommenu.BoomMenuButton>
```
The fade-views added to BMB will perform fade-in and fade-out animations when booming and rebooming. When BMB has a fade-view, you may want to remove the pieces. BMB does not provide any methods to remove pieces, but there is a trick to do so:
```
app:bmb_dotRadius="0dp"
```
Check [demo](https://github.com/Nightonke/BoomMenu/blob/master/app/src/main/java/com/nightonke/boommenusample/FadeViewsActivity.java) for more details.
\ No newline at end of file
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. 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