I\'m trying to use the new Android P FloatingActionButton that\'s part of the com.google.android.material.floatingactionbutton.FloatingActionButton and I\'m get
For com.google.android.material.floatingactionbutton.FloatingActionButton
Visibility
Use the show and hide methods to animate the visibility of a FloatingActionButton. The show animation grows the widget and fades it in, while the hide animation shrinks the widget and fades it out.
Source: https://material.io/develop/android/components/floating-action-button/
For android.support.design.widget.FloatingActionButton
use setVisibility() Method