FileDocCategorySizeDatePackage
ForegroundColorSpan.javaAPI DocAndroid 5.1 API1494Thu Mar 12 22:22:10 GMT 2015android.text.style

ForegroundColorSpan

public class ForegroundColorSpan extends CharacterStyle implements UpdateAppearance, android.text.ParcelableSpan

Fields Summary
private final int
mColor
Constructors Summary
public ForegroundColorSpan(int color)

        mColor = color;
    
public ForegroundColorSpan(android.os.Parcel src)

        mColor = src.readInt();
    
Methods Summary
public intdescribeContents()

        return 0;
    
public intgetForegroundColor()

        return mColor;
    
public intgetSpanTypeId()

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

        ds.setColor(mColor);
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        dest.writeInt(mColor);