Package icyllis.modernui.text.style
Class AlignmentSpan.Standard
java.lang.Object
icyllis.modernui.text.style.AlignmentSpan.Standard
- All Implemented Interfaces:
icyllis.modernui.text.ParcelableSpan,AlignmentSpan,ParagraphStyle,Parcelable
- Enclosing interface:
AlignmentSpan
public static class AlignmentSpan.Standard
extends Object
implements AlignmentSpan, icyllis.modernui.text.ParcelableSpan
-
Nested Class Summary
Nested classes/interfaces inherited from interface icyllis.modernui.text.style.AlignmentSpan
AlignmentSpan.StandardNested classes/interfaces inherited from interface icyllis.modernui.util.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>, Parcelable.WriteFlags -
Constructor Summary
ConstructorsConstructorDescriptionStandard(Layout.Alignment align) Constructs aAlignmentSpan.Standardfrom an alignment.Constructs aAlignmentSpan.Standardfrom a parcel. -
Method Summary
Modifier and TypeMethodDescriptionReturns the alignment of the text.intReturn a special type identifier for this span class.voidwriteToParcel(Parcel dest, int flags) The subclass implements the method to flatten its contents by calling the methods ofParcelfor its primitive values.
-
Constructor Details
-
Standard
Constructs aAlignmentSpan.Standardfrom an alignment. -
Standard
Constructs aAlignmentSpan.Standardfrom a parcel.
-
-
Method Details
-
getSpanTypeId
public int getSpanTypeId()Return a special type identifier for this span class.- Specified by:
getSpanTypeIdin interfaceicyllis.modernui.text.ParcelableSpan
-
getAlignment
Description copied from interface:AlignmentSpanReturns the alignment of the text.- Specified by:
getAlignmentin interfaceAlignmentSpan- Returns:
- the text alignment
-
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
-