public class RelativeSizeSpan extends MetricAffectingSpan implements ParcelableSpan
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
RelativeSizeSpan(float proportion) |
RelativeSizeSpan(Parcel src) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
float |
getSizeChange() |
int |
getSpanTypeId()
Return a special type identifier for this span class.
|
void |
updateDrawState(TextPaint ds) |
void |
updateMeasureState(TextPaint ds) |
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel.
|
getUnderlying
wrap
public RelativeSizeSpan(float proportion)
public RelativeSizeSpan(Parcel src)
public int getSpanTypeId()
ParcelableSpan
getSpanTypeId
in interface ParcelableSpan
public int describeContents()
Parcelable
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
Parcelable
writeToParcel
in interface Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.public float getSizeChange()
public void updateDrawState(TextPaint ds)
updateDrawState
in class CharacterStyle
public void updateMeasureState(TextPaint ds)
updateMeasureState
in class MetricAffectingSpan