FileDocCategorySizeDatePackage
ScaleXSpan.javaAPI DocAndroid 5.1 API1636Thu Mar 12 22:22:10 GMT 2015android.text.style

ScaleXSpan

public class ScaleXSpan extends MetricAffectingSpan implements android.text.ParcelableSpan

Fields Summary
private final float
mProportion
Constructors Summary
public ScaleXSpan(float proportion)

        mProportion = proportion;
    
public ScaleXSpan(android.os.Parcel src)

        mProportion = src.readFloat();
    
Methods Summary
public intdescribeContents()

        return 0;
    
public floatgetScaleX()

        return mProportion;
    
public intgetSpanTypeId()

        return TextUtils.SCALE_X_SPAN;
    
public voidupdateDrawState(android.text.TextPaint ds)

        ds.setTextScaleX(ds.getTextScaleX() * mProportion);
    
public voidupdateMeasureState(android.text.TextPaint ds)

        ds.setTextScaleX(ds.getTextScaleX() * mProportion);
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        dest.writeFloat(mProportion);