Package icyllis.modernui.text.style
Class AlignmentSpan.Standard
java.lang.Object
icyllis.modernui.text.style.AlignmentSpan.Standard
- All Implemented Interfaces:
ParcelableSpan
,AlignmentSpan
,ParagraphStyle
,Parcelable
- Enclosing interface:
AlignmentSpan
-
Nested Class Summary
Nested classes/interfaces inherited from interface icyllis.modernui.text.style.AlignmentSpan
AlignmentSpan.Standard
Nested classes/interfaces inherited from interface icyllis.modernui.util.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>, Parcelable.WriteFlags
-
Constructor Summary
ConstructorDescriptionStandard
(Layout.Alignment align) Constructs aAlignmentSpan.Standard
from an alignment.Constructs aAlignmentSpan.Standard
from a parcel. -
Method Summary
Modifier and TypeMethodDescriptionReturns the alignment of the text.int
Return a special type identifier for this span class.void
writeToParcel
(Parcel dest, int flags) The subclass implements the method to flatten its contents by calling the methods ofParcel
for its primitive values.
-
Constructor Details
-
Standard
Constructs aAlignmentSpan.Standard
from an alignment. -
Standard
Constructs aAlignmentSpan.Standard
from a parcel.
-
-
Method Details
-
getSpanTypeId
public int getSpanTypeId()Description copied from interface:ParcelableSpan
Return a special type identifier for this span class.- Specified by:
getSpanTypeId
in interfaceParcelableSpan
-
getAlignment
Description copied from interface:AlignmentSpan
Returns the alignment of the text.- Specified by:
getAlignment
in interfaceAlignmentSpan
- Returns:
- the text alignment
-
writeToParcel
Description copied from interface:Parcelable
The subclass implements the method to flatten its contents by calling the methods ofParcel
for its primitive values.- Specified by:
writeToParcel
in interfaceParcelable
- Parameters:
dest
- the parcel to write the object's data toflags
- the flags about how the object should be written
-