In an CoordinatorLayout
, a FAB is moved because its behavior class's onDependentViewChanged()
is called when the Snackbar
animates in or out.
However, when you call Snabackbar.dismiss()
no animation takes place. And therefore no onDependentViewChanged()
. And thus movement of the FAB.
Is it possible to either
- animate the
Snackbar
dismiss? - create a behavior that moves the FAB when the
Snackbar
causesonDependentViewRemoved()
?
This is arguably a duplicate of this. Yet it doesn't suggest any solutions to create the dismiss animation--but the solutions there may provide a practical solution in the meantime.