# WrapTogetherSpan

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

# WrapTogetherSpan

*** ** * ** ***

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

```
interface WrapTogetherSpan : ParagraphStyle
```

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

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [LeadingMarginSpan.LeadingMarginSpan2](https://developer.android.com/reference/kotlin/android/text/style/LeadingMarginSpan.LeadingMarginSpan2),[LineHeightSpan](https://developer.android.com/reference/kotlin/android/text/style/LineHeightSpan) |------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [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. | | [LineHeightSpan](https://developer.android.com/reference/kotlin/android/text/style/LineHeightSpan)                                             | The classes that affect the line height of paragraph should implement this interface.                                                                                                                                                                                                                             | |

|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Indirect Subclasses [DrawableMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/DrawableMarginSpan),[IconMarginSpan](https://developer.android.com/reference/kotlin/android/text/style/IconMarginSpan),[LineHeightSpan.Standard](https://developer.android.com/reference/kotlin/android/text/style/LineHeightSpan.Standard),[LineHeightSpan.WithDensity](https://developer.android.com/reference/kotlin/android/text/style/LineHeightSpan.WithDensity) |----------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [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.                                                                                                                 | | [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.                                                                            | |

## Summary