private void setStylesSplit ( TextView split ) { if ( split != null ) { split . setText ( mSplit ) ; split . setLayoutParams ( new LayoutParams ( ViewGroup . LayoutParams . WRAP_CONTENT , ViewGroup . LayoutParams . MATCH_PARENT ) ) ; split . setGravity ( Gravity . CENTER_VERTICAL ) ; if ( mColorSplit != PinViewSettings . DEFAULT_COLOR_SPLIT ) { split . setTextColor ( mColorSplit ) ; } split . setTextSize ( PinViewUtils . convertPixelToDp ( getContext ( ) , mSizeSplit ) ) ; } }
Set a Split with all attributes