floatingaction and snackbar
Thank for you powerful library. I want to know how to set floatingactionbutton going up when snackbar show. Even I use CoordinatorLayout but it don't work.
Add it
<com.github.clans.fab.FloatingActionButton .... fab:layout_behavior="FloatingActionMenuBehavior"/>
this doesn't work .
How do you create Snackbar?
Example:
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
....
Snackbar.make(fab, text, duration);
Do you need to provide the FAB for the view of the Snackbar or is CoordinatorLayout sufficient? I'm seeing this issue as well
public boolean onDependentViewChanged is called not only when public boolean layoutDependsOn is returning 'true' but also when an anchored view changes. It may place the FAB above the whole screen. To fix it you should also check if the dependency is a Snackbar.SnackbarLayout in the onDependentViewChanged method (if you are using @k-andrew FloatingActionMenuBehavior.java)
@isuPatches CoordinatorLayout is sufficent
@isuPatches : with root layout CoordinatorLayout
this doesn't work .