public FloatingActionButton createSubFAB(char icon,String text){
  FloatingActionButton sub=new FloatingActionButton(icon,text,2.8f);
  if (subMenu == null) {
    subMenu=new ArrayList<FloatingActionButton>();
  }
  subMenu.add(sub);
  return sub;
}

public FloatingActionButton createSubFAB ( char icon , String text ) { FloatingActionButton sub = new FloatingActionButton ( icon , text , 2.8f ) ; if ( subMenu == null ) { subMenu = new ArrayList < FloatingActionButton > ( ) ; } subMenu . add ( sub ) ; return sub ; }
adds a sub fab to the floatingactionbutton instance . once pressed all its sub fab ' s are displayed .
