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