# ParagraphStyle

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# ParagraphStyle

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/text/style/ParagraphStyle "View this page in Java")  

```
interface ParagraphStyle
```

|------------------------------------------------------------------------------------------------------------------------|
| [android.text.style.ParagraphStyle](https://developer.android.com/reference/kotlin/android/text/style/ParagraphStyle#) |

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [AlignmentSpan](https://developer.android.com/reference/kotlin/android/text/style/AlignmentSpan),[LeadingMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/LeadingMarginSpan),[LineBackgroundSpan](https://developer.android.com/reference/kotlin/android/text/style/LineBackgroundSpan),[LineHeightSpan](https://developer.android.com/reference/kotlin/android/text/style/LineHeightSpan),[TabStopSpan](https://developer.android.com/reference/kotlin/android/text/style/TabStopSpan),[WrapTogetherSpan](https://developer.android.com/reference/kotlin/android/text/style/WrapTogetherSpan) |------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------| | [AlignmentSpan](https://developer.android.com/reference/kotlin/android/text/style/AlignmentSpan)           | Span that allows defining the alignment of text at the paragraph level.                                       | | [LeadingMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/LeadingMarginSpan)   | A paragraph style affecting the leading margin.                                                               | | [LineBackgroundSpan](https://developer.android.com/reference/kotlin/android/text/style/LineBackgroundSpan) | Used to change the background of lines where the span is attached to.                                         | | [LineHeightSpan](https://developer.android.com/reference/kotlin/android/text/style/LineHeightSpan)         | The classes that affect the line height of paragraph should implement this interface.                         | | [TabStopSpan](https://developer.android.com/reference/kotlin/android/text/style/TabStopSpan)               | Paragraph affecting span that changes the position of the tab with respect to the leading margin of the line. | | [WrapTogetherSpan](https://developer.android.com/reference/kotlin/android/text/style/WrapTogetherSpan)     | <br />                                                                                                        | |

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Indirect Subclasses [AlignmentSpan.Standard](https://developer.android.com/reference/kotlin/android/text/style/AlignmentSpan.Standard),[BulletSpan](https://developer.android.com/reference/kotlin/android/text/style/BulletSpan),[DrawableMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/DrawableMarginSpan),[DrawableMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/DrawableMarginSpan),[DrawableMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/DrawableMarginSpan),[IconMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/IconMarginSpan),[IconMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/IconMarginSpan),[IconMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/IconMarginSpan),[LeadingMarginSpan.LeadingMarginSpan2](https://developer.android.com/reference/kotlin/android/text/style/LeadingMarginSpan.LeadingMarginSpan2),[LeadingMarginSpan.LeadingMarginSpan2](https://developer.android.com/reference/kotlin/android/text/style/LeadingMarginSpan.LeadingMarginSpan2),[LeadingMarginSpan.Standard](https://developer.android.com/reference/kotlin/android/text/style/LeadingMarginSpan.Standard),[LineBackgroundSpan.Standard](https://developer.android.com/reference/kotlin/android/text/style/LineBackgroundSpan.Standard), and 7 others. |------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [AlignmentSpan.Standard](https://developer.android.com/reference/kotlin/android/text/style/AlignmentSpan.Standard)                             | Default implementation of the[AlignmentSpan](https://developer.android.com/reference/kotlin/android/text/style/AlignmentSpan).                                                                                                                                                                                    | | [BulletSpan](https://developer.android.com/reference/kotlin/android/text/style/BulletSpan)                                                     | A span which styles paragraphs as bullet points (respecting layout direction).                                                                                                                                                                                                                                    | | [DrawableMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/DrawableMarginSpan)                                     | A span which adds a drawable and a padding to the paragraph it's attached to.                                                                                                                                                                                                                                     | | [DrawableMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/DrawableMarginSpan)                                     | A span which adds a drawable and a padding to the paragraph it's attached to.                                                                                                                                                                                                                                     | | [DrawableMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/DrawableMarginSpan)                                     | A span which adds a drawable and a padding to the paragraph it's attached to.                                                                                                                                                                                                                                     | | [IconMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/IconMarginSpan)                                             | Paragraph affecting span, that draws a bitmap at the beginning of a text.                                                                                                                                                                                                                                         | | [IconMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/IconMarginSpan)                                             | Paragraph affecting span, that draws a bitmap at the beginning of a text.                                                                                                                                                                                                                                         | | [IconMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/IconMarginSpan)                                             | Paragraph affecting span, that draws a bitmap at the beginning of a text.                                                                                                                                                                                                                                         | | [LeadingMarginSpan.LeadingMarginSpan2](https://developer.android.com/reference/kotlin/android/text/style/LeadingMarginSpan.LeadingMarginSpan2) | An extended version of[LeadingMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/LeadingMarginSpan), which allows the implementor to specify the number of lines of the paragraph to which this object is attached that the "first line of paragraph" margin width will be applied to. | | [LeadingMarginSpan.LeadingMarginSpan2](https://developer.android.com/reference/kotlin/android/text/style/LeadingMarginSpan.LeadingMarginSpan2) | An extended version of[LeadingMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/LeadingMarginSpan), which allows the implementor to specify the number of lines of the paragraph to which this object is attached that the "first line of paragraph" margin width will be applied to. | | [LeadingMarginSpan.Standard](https://developer.android.com/reference/kotlin/android/text/style/LeadingMarginSpan.Standard)                     | The standard implementation of LeadingMarginSpan, which adjusts the margin but does not do any rendering.                                                                                                                                                                                                         | | [LineBackgroundSpan.Standard](https://developer.android.com/reference/kotlin/android/text/style/LineBackgroundSpan.Standard)                   | Default implementation of the[LineBackgroundSpan](https://developer.android.com/reference/kotlin/android/text/style/LineBackgroundSpan), which changes the background color of the lines to which the span is attached.                                                                                           | | [LineHeightSpan](https://developer.android.com/reference/kotlin/android/text/style/LineHeightSpan)                                             | The classes that affect the line height of paragraph should implement this interface.                                                                                                                                                                                                                             | | [LineHeightSpan.Standard](https://developer.android.com/reference/kotlin/android/text/style/LineHeightSpan.Standard)                           | Default implementation of the[LineHeightSpan](https://developer.android.com/reference/kotlin/android/text/style/LineHeightSpan), which changes the line height of the attached paragraph.                                                                                                                         | | [LineHeightSpan.Standard](https://developer.android.com/reference/kotlin/android/text/style/LineHeightSpan.Standard)                           | Default implementation of the[LineHeightSpan](https://developer.android.com/reference/kotlin/android/text/style/LineHeightSpan), which changes the line height of the attached paragraph.                                                                                                                         | | [LineHeightSpan.WithDensity](https://developer.android.com/reference/kotlin/android/text/style/LineHeightSpan.WithDensity)                     | The classes that affect the line height of paragraph with respect to density, should implement this interface.                                                                                                                                                                                                    | | [LineHeightSpan.WithDensity](https://developer.android.com/reference/kotlin/android/text/style/LineHeightSpan.WithDensity)                     | The classes that affect the line height of paragraph with respect to density, should implement this interface.                                                                                                                                                                                                    | | [QuoteSpan](https://developer.android.com/reference/kotlin/android/text/style/QuoteSpan)                                                       | A span which styles paragraphs by adding a vertical stripe at the beginning of the text (respecting layout direction).                                                                                                                                                                                            | | [TabStopSpan.Standard](https://developer.android.com/reference/kotlin/android/text/style/TabStopSpan.Standard)                                 | The default implementation of TabStopSpan that allows setting the offset of the tab stop from the leading margin of the first line of text.                                                                                                                                                                       | |

The classes that affect paragraph-level text formatting implement this interface.

## Summary