FileDocCategorySizeDatePackage
SuggestionRangeSpan.javaAPI DocAndroid 5.1 API1788Thu Mar 12 22:22:10 GMT 2015android.text.style

SuggestionRangeSpan

public class SuggestionRangeSpan extends CharacterStyle implements android.text.ParcelableSpan
A SuggestionRangeSpan is used to show which part of an EditText is affected by a suggestion popup window.
hide

Fields Summary
private int
mBackgroundColor
Constructors Summary
public SuggestionRangeSpan()

        // 0 is a fully transparent black. Has to be set using #setBackgroundColor
        mBackgroundColor = 0;
    
public SuggestionRangeSpan(android.os.Parcel src)

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

        return 0;
    
public intgetSpanTypeId()

        return TextUtils.SUGGESTION_RANGE_SPAN;
    
public voidsetBackgroundColor(int backgroundColor)

        mBackgroundColor = backgroundColor;
    
public voidupdateDrawState(android.text.TextPaint tp)

        tp.bgColor = mBackgroundColor;
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        dest.writeInt(mBackgroundColor);