public final void setClosable ( final boolean closable ) { this . closable = closable ; if ( closable ) { closeButton . setVisibility ( View . VISIBLE ) ; textView . setPadding ( textView . getPaddingLeft ( ) , textView . getPaddingTop ( ) , 0 , textView . getPaddingBottom ( ) ) ; } else { closeButton . setVisibility ( View . GONE ) ; textView . setPadding ( textView . getPaddingLeft ( ) , textView . getPaddingTop ( ) , getResources ( ) . getDimensionPixelSize ( R . dimen . chip_horizontal_padding ) , textView . getPaddingBottom ( ) ) ; } }
Sets whether the chip is closable or not .