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
  • Constructor Details

  • Method Details

    • getSpanTypeId

      public int getSpanTypeId()
      Return a special type identifier for this span class.
      Specified by:
      getSpanTypeId in interface icyllis.modernui.text.ParcelableSpan
    • getAlignment

      public Layout.Alignment getAlignment()
      Description copied from interface: AlignmentSpan
      Returns the alignment of the text.
      Specified by:
      getAlignment in interface AlignmentSpan
      Returns:
      the text alignment
    • writeToParcel

      public void writeToParcel(@NonNull Parcel dest, int flags)
      Description copied from interface: Parcelable
      The subclass implements the method to flatten its contents by calling the methods of Parcel for its primitive values.
      Specified by:
      writeToParcel in interface Parcelable
      Parameters:
      dest - the parcel to write the object's data to
      flags - the flags about how the object should be written