code: public void showLabel(boolean showLabel) {
          shouldShowLabel = showLabel;
          labeledLayout.setVisibility(showLabel ? VISIBLE : GONE);
          icon.setVisibility(!showLabel ? VISIBLE : GONE);
      }
docs: Whether to show an icon or a label with the current selected mode.
  By default, it will show the icon.
  
  @param showLabel whether to show an icon or a label.