I am trying to hide my FloatingActionButton fabLocation programmatically with :
fabLocation
fabLocation.setVisibility(View.GONE)
but it do
The most simplistic way to hide and show a floating action button would be to call this in your activity. This will also properly animate your FAB automatically.
Hide:
nameOfYourFAB.Hide();
Show:
nameOfYourFAB.Show();