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

BackgroundColorSpan

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

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

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

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

        return 0;
    
public intgetBackgroundColor()

        return mColor;
    
public intgetSpanTypeId()

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

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

        dest.writeInt(mColor);