Liked your question ...
This library is not allowed to set the click button click event, you may have to change the library code for your own, use this idea: Use Relatie or framelayout and add this black background or image for FAB.
Now in the library class FloatingActionsMenu.class find and comment on this code:
//mAddButton.setOnClickListener(new OnClickListener() //{ // @Override // public void onClick(View v) // { // toggle(); // } //});
Then add this method to this class,
public void setAddButtonClickListener(OnClickListener listener) { mAddButton.setOnClickListener(listener); }
Define a click listener in your activity, for example
OnClickListener listener = new OnClickListener() { @Override public void onClick(View v) { if (floatingActionMenuButton.isExpanded()) {
and transfer it to fab
floatingActionMenuButton.setAddButtonClickListener(listener);
Build a library and project , hope this helps!
Harry source share