Floating action buttons are awesome. They are clean, intuitive, simple and most of all, they are always there when you need them. As Google’s material design keeps improving, the floating action buttons (FAB) are getting more and more popular, adding them to your android app is no longer a complicated task.
Add needed dependencies to build.gradle
Use The Floating Action Button Widget From the Support Library
After adding the google’s support library into your project, you can use all the new widgets without the need to develop from scratch.
This approach is by far the easiest way to add material design components to your app. The only part left to do is to add a click handler.
Add a Click Event to The Floating Action Button
Add the following code to the corresponding Activity java class where you have the button visible, in this example I open a new activity screen when clicking it.
Cheers