FileDocCategorySizeDatePackage
RelativeSizeSpan.javaAPI DocAndroid 5.1 API1656Thu Mar 12 22:22:10 GMT 2015android.text.style

RelativeSizeSpan

public class RelativeSizeSpan extends MetricAffectingSpan implements android.text.ParcelableSpan

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

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

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

        return 0;
    
public floatgetSizeChange()

        return mProportion;
    
public intgetSpanTypeId()

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

        ds.setTextSize(ds.getTextSize() * mProportion);
    
public voidupdateMeasureState(android.text.TextPaint ds)

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

        dest.writeFloat(mProportion);