Package cn.authing.guard.util
Class SpaceOnTheLeftSpan
- java.lang.Object
-
- android.text.style.CharacterStyle
-
- android.text.style.MetricAffectingSpan
-
- android.text.style.ReplacementSpan
-
- cn.authing.guard.util.SpaceOnTheLeftSpan
-
- All Implemented Interfaces:
UpdateAppearance,UpdateLayout
public class SpaceOnTheLeftSpan extends ReplacementSpan
-
-
Constructor Summary
Constructors Constructor Description SpaceOnTheLeftSpan(float p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint)intgetSize(Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm)-
Methods inherited from class android.text.style.ReplacementSpan
getContentDescription, setContentDescription, updateDrawState, updateMeasureState
-
Methods inherited from class android.text.style.MetricAffectingSpan
getUnderlying
-
Methods inherited from class android.text.style.CharacterStyle
wrap
-
-
-
-
Method Detail
-
draw
public void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint)
- Specified by:
drawin classReplacementSpan
-
getSize
public int getSize(Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm)
- Specified by:
getSizein classReplacementSpan
-
-