android - Floating Action Button still appearing on scroll even in ActionMode -


i using google's support design library floatingactionbutton, along coordinatorlayout, recyclerview, , cardview.

everything works rather well, fab disappearing on scroll , reappearing when scroll ends.

i have 1 small issue however, , when switch recyclerview multiselect mode. fab dissapears whenever action mode set, scrolling list view makes reappear. there anyway set behavior fab when recycler view in action mode(multiple selection), fab not reappear when scrolling.

there might other ways this, simplest way set visibility of fab "invisible" in oncreateactionmode() , "visible" in ondestroyactionmode().

public boolean oncreateactionmode(actionmode mode, menu menu) {  ...   fab.setvisibility(view.invisible);  ...  }  public boolean ondestroyactionmode(actionmode mode) {  ...   fab.setvisibility(view.visible);  ...  } 

there no way fab show in while cab on. hope helps.


Comments