Top "Floating-action-button" questions

Floating action buttons are a special case of promoted actions.

FloatingActionButton doesn't hide

I am trying to hide my FloatingActionButton fabLocation programmatically with : fabLocation.setVisibility(View.GONE) but it does not work. If …

android material-design android-design-library floating-action-button
android: dynamically change FAB(Floating Action Button) icon from code

How to change FAB icon in an Activity during runtime. I have this code -> FloatingActionButton fab = (FloatingActionButton) findViewById(…

android material-design floating-action-button
Android: How to change size of app:fabSize="normal" for Floating Action Button

When using the new FloatingActionButton, the size is determined by app:fabSize="normal". How can I set what in dp …

android android-layout floating-action-button
Hide FloatingActionButton on scroll of RecyclerView

I want to hide/show FloatingActionButton on scroll of RecyclerView. My XML layout : <android.support.design.widget.CoordinatorLayout android:…

scroll android-recyclerview floating-action-button android-coordinatorlayout
Two floating action buttons next to each other

The material design documentation has an example of Google Maps showing two floating action buttons next to one another (actually, …

android material-design floating-action-button
How to change FAB background color

I am using Floating Action Button and I want to change the background color. Here is my code <android.…

android floating-action-button
Moving Floating Action Button up and down to avoid getting blocked by a snackbar

I'm using this library to implement a floating action bar and I can't seem to find a way to move …

android floating floating-action-button
How to add shadow to the FAB provided with the android support design library?

The title is pretty self explaining. The following code does not render shadow below the Floating Action Button. What can …

android floating-action-button android-design-library android-appcompat
Error inflating class android.support.design.widget.FloatingActionButton

My app crashed because Error inflating class android.support.design.widget.FloatingActionButton This is my code in the XML <…

android floating-action-button runtimeexception
Floating Action Button not showing fully inside a fragment

I am using FAB button along with RecyclerView in a Fragment. This Fragment is an instance of a TabViewPager. I …

android android-fragments floating-action-button androiddesignsupport android-coordinatorlayout