My question revolves around the Floating action button that was introduced in Android Material Design.
There are many library offering this component on GitHub as:
- Android-floating-action-button
- FloatingActionButton
- CircularFloatingActionMenu
- Fab
- Floating-action-button
But my question is:
Is there a native component with the last release of android.support.vX
that was built for Floating action button
?
Components such as :
- android.support.v7.cardview
- android.support.v4.widget.DrawerLayout
- android.support.v7.widget.RecyclerView
- ...
Not yet, there have been hints that we will see it in the next support lib.
Today (29/05/2015) it is officially avaiable with the new Material Design support Library.
Just add this dependency to your
build.gradle
Add this view to your layout:
And use it:
You can use the class md-fab on a md-button then add a span with something like a plus sign inside of the md-button. Also there are other md-fab classes like md-fab-bottom-right which might help you out. Also you can use an md-icon inside your md-button