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

Popular posts from this blog

c - Calling a function within a loop -

vb.net - Unbound DataGridView add row with checkbox error -

How i fill combobox items in Radgridview manually using in vb.net -