@Override public void onClick(View v) { if (subMenu != null && !subMenu.isShowing()) { subMenu.show(); } callback.onMenuItemClicked(this); }
public void setSubMenu(FloatingMenu subMenu) { this.subMenu = subMenu; subMenu.setCallback(this); }