Package com.cheetahdigital.uikit.widget
Class TypeFaceSpan
- java.lang.Object
 - 
- android.text.style.CharacterStyle
 - 
- android.text.style.MetricAffectingSpan
 - 
- com.cheetahdigital.uikit.widget.TypeFaceSpan
 
 
 
 
- 
- All Implemented Interfaces:
 android.text.style.UpdateAppearance,android.text.style.UpdateLayout
public class TypeFaceSpan extends android.text.style.MetricAffectingSpanStyle aSpannablewith a customTypeface. https://gist.github.com/twaddington/b91341ea5615698b53b8 
- 
- 
Constructor Summary
Constructors Constructor Description TypeFaceSpan(android.content.Context context, java.lang.String typefaceName)Load theTypefaceand apply to aSpannable. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidupdateDrawState(android.text.TextPaint tp)Update the Draw StatesvoidupdateMeasureState(android.text.TextPaint p)Updated the Measure State 
 - 
 
- 
- 
Method Detail
- 
updateMeasureState
public void updateMeasureState(android.text.TextPaint p)
Updated the Measure State- Specified by:
 updateMeasureStatein classandroid.text.style.MetricAffectingSpan- Parameters:
 p-TextPaintto be modified
 
- 
updateDrawState
public void updateDrawState(android.text.TextPaint tp)
Update the Draw States- Specified by:
 updateDrawStatein classandroid.text.style.CharacterStyle- Parameters:
 tp-TextPaintto be modified
 
 - 
 
 -