Add button, for example, "New mail" in the Gmail application.

I want to add a button similar to the New Mail button in the Gmail application (the Circle button on the right with a pen icon) that floats on the screen. Can someone show me how to do this? is it possible to do this without material development guidelines?

enter image description here

+6
source share
2 answers

This library: https://github.com/futuresimple/android-floating-action-button seems to do a decent job of reproducing the Floating Action Button, as well as some menu interactions if you're interested in them.

+4
source

Or just import the official Google FAB sample into Android Studio:

File> Sample Import> Search for FloatingActionButtonBasic.

FloatingActionButton library is part of the Android Open Source Project

+3
source

Source: https://habr.com/ru/post/981248/


All Articles