Package icyllis.modernui.text.style
Class StrikethroughSpan
java.lang.Object
icyllis.modernui.text.style.CharacterStyle
icyllis.modernui.text.style.StrikethroughSpan
- All Implemented Interfaces:
icyllis.modernui.text.ParcelableSpan,UpdateAppearance,Parcelable,Cloneable
public class StrikethroughSpan
extends CharacterStyle
implements UpdateAppearance, icyllis.modernui.text.ParcelableSpan
A span that strikes through the text it's attached to.
The span can be used like this:
SpannableString string = new SpannableString("Text with strikethrough span");
string.setSpan(new StrikethroughSpan(), 10, 23, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);-
Nested Class Summary
Nested classes/interfaces inherited from interface icyllis.modernui.util.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>, Parcelable.WriteFlags -
Constructor Summary
ConstructorsConstructorDescriptionCreates aStrikethroughSpan.StrikethroughSpan(Parcel src) Creates aStrikethroughSpanfrom a parcel. -
Method Summary
Modifier and TypeMethodDescriptionintReturn a special type identifier for this span class.voidupdateDrawState(TextPaint paint) voidwriteToParcel(Parcel dest, int flags) The subclass implements the method to flatten its contents by calling the methods ofParcelfor its primitive values.Methods inherited from class icyllis.modernui.text.style.CharacterStyle
clone, wrap
-
Constructor Details
-
StrikethroughSpan
public StrikethroughSpan()Creates aStrikethroughSpan. -
StrikethroughSpan
Creates aStrikethroughSpanfrom a parcel.
-
-
Method Details
-
getSpanTypeId
public int getSpanTypeId()Return a special type identifier for this span class.- Specified by:
getSpanTypeIdin interfaceicyllis.modernui.text.ParcelableSpan
-
writeToParcel
Description copied from interface:ParcelableThe subclass implements the method to flatten its contents by calling the methods ofParcelfor its primitive values.- Specified by:
writeToParcelin interfaceParcelable- Parameters:
dest- the parcel to write the object's data toflags- the flags about how the object should be written
-
updateDrawState
- Specified by:
updateDrawStatein classCharacterStyle
-