android - Is there anyway to set custom icon for FloatingActionMenu on close and open? -
i have used floatingactionmenu in project github library link here. can't customize icons of floating action menu on open , close.
you can listen click , maintain boolean
boolean is_expanded; now on first click set
is_expanded = !is_expanded; and
if(is_expanded){ fab.setbackgrounddrawable(drawable_expanded); }else{ fab.setbackgrounddrawable(drawable_collapsed); }
Comments
Post a Comment