FloatingActionButton icon indicating copy to clipboard operation
FloatingActionButton copied to clipboard

floatingaction and snackbar

Open RuijiePan opened this issue 9 years ago • 6 comments

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.

RuijiePan avatar Jan 04 '17 11:01 RuijiePan

Add it <com.github.clans.fab.FloatingActionButton .... fab:layout_behavior="FloatingActionMenuBehavior"/>

And FloatingActionMenuBehavior.java

k-andrew avatar Jan 04 '17 21:01 k-andrew

this doesn't work .

randomlock avatar Jan 08 '17 16:01 randomlock

How do you create Snackbar?

Example: FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); .... Snackbar.make(fab, text, duration);

k-andrew avatar Jan 09 '17 10:01 k-andrew

Do you need to provide the FAB for the view of the Snackbar or is CoordinatorLayout sufficient? I'm seeing this issue as well

isuPatches avatar Feb 03 '17 23:02 isuPatches

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

MClondi avatar Feb 09 '17 09:02 MClondi

@isuPatches : with root layout CoordinatorLayout
this doesn't work .

iman100 avatar Sep 22 '17 14:09 iman100