Is there a library for Floating Action Buttons (FAB) with Labels?

前端 未结 4 1524
余生分开走
余生分开走 2020-12-23 14:57

Is there a library for creating Floating Action Buttons with labels (similar to the Evernote app)?

Evernote Screenshot

The popular libraries seem to be

相关标签:
4条回答
  • 2020-12-23 15:38

    This feature request ended up being implemented in https://github.com/futuresimple/android-floating-action-button. This includes labels on both the left and right sides.

    If you're interested, see the discussion here: https://github.com/futuresimple/android-floating-action-button/issues/22#issuecomment-66155108

    Disclaimer: I haven't used this (yet).

    I'd recommend this library over others that I've seen.

    0 讨论(0)
  • 2020-12-23 15:39

    Especially the last library you mentioned looks quite sophisticated. To my knowledge, you can set any kind of View you want to be shown as a Button.

    This View could simply be a custom-view of yours that shows an image as well as a label.

    0 讨论(0)
  • 2020-12-23 15:46

    Nowadays there are available techniques of manipulating behaviour of the view that enable you to program FloatinActionButton as you want and to have joy that you have made it by yourself!

    1. Fade in/out FloatingActionButton while scrolling RecyclerView . DETAILS

    2. Slide down/up , beside it blog says how to:

    3. Expand floatingActionButton and show subFloatingButtons. DETAILS HERE

    There is to much details, "how to do". Therefore I've attached just links to blogs. Anyway I encourage you guys to take a look at those blogs. You will have total control over your application. Currenty I use all solutions from both blog's. Enjoy!

    0 讨论(0)
  • 2020-12-23 15:51

    In case anyone is still looking for this functionality: I made an Android library that has this ability and much more, called ExpandableFab (https://github.com/nambicompany/expandable-fab).

    The Material Design spec refers to this functionality as 'Speed Dial' and ExpandableFab implements it along with many additional features.

    Nearly everything is customizable (colors, text, size, placement, margins, animations and more) and optional (don't need an Overlay, or FabOptions, or Labels, or icons, etc). Every property can be accessed or set through XML layouts or programmatically - whatever you prefer.

    Written 100% in Kotlin but comes with full JavaDoc and KDoc (published API is well documented). Also comes with an example app so you can see different use cases with 0 coding.

    Github: https://github.com/nambicompany/expandable-fab

    Library website (w/ links to full documentation): https://nambicompany.github.io/expandable-fab/

    Regular ExpandableFab implementing Material Design 'Speed Dial' functionality A highly customized ExpandableFab implementing Material Design 'Speed Dial' functionality

    0 讨论(0)
提交回复
热议问题