public AutofitHelper setMinTextSize ( int unit , float size ) { Context context = mTextView . getContext ( ) ; Resources r = Resources . getSystem ( ) ; if ( context != null ) { r = context . getResources ( ) ; } setRawMinTextSize ( TypedValue . applyDimension ( unit , size , r . getDisplayMetrics ( ) ) ) ; return this ; }
Set the minimum text size to a given unit and value . See TypedValue for the possible dimension units .