Stay organized with collections
Save and categorize content based on your preferences.
WrapTogetherSpan
interface WrapTogetherSpan : ParagraphStyle
Known Direct Subclasses
LeadingMarginSpan.LeadingMarginSpan2 |
An extended version of 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 |
The classes that affect the line height of paragraph should implement this interface.
|
|
Known Indirect Subclasses
|
Summary
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# WrapTogetherSpan\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nWrapTogetherSpan\n================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/text/style/WrapTogetherSpan \"View this page in Java\") \n\n```\ninterface WrapTogetherSpan : ParagraphStyle\n```\n\n|------------------------------------------|\n| [android.text.style.WrapTogetherSpan](#) |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [LeadingMarginSpan.LeadingMarginSpan2](/reference/kotlin/android/text/style/LeadingMarginSpan.LeadingMarginSpan2), [LineHeightSpan](/reference/kotlin/android/text/style/LineHeightSpan) |-------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [LeadingMarginSpan.LeadingMarginSpan2](/reference/kotlin/android/text/style/LeadingMarginSpan.LeadingMarginSpan2) | An extended version of [LeadingMarginSpan](/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](/reference/kotlin/android/text/style/LineHeightSpan) | The classes that affect the line height of paragraph should implement this interface. | |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Indirect Subclasses [DrawableMarginSpan](/reference/kotlin/android/text/style/DrawableMarginSpan), [IconMarginSpan](/reference/kotlin/android/text/style/IconMarginSpan), [LineHeightSpan.Standard](/reference/kotlin/android/text/style/LineHeightSpan.Standard), [LineHeightSpan.WithDensity](/reference/kotlin/android/text/style/LineHeightSpan.WithDensity) |-----------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------| | [DrawableMarginSpan](/reference/kotlin/android/text/style/DrawableMarginSpan) | A span which adds a drawable and a padding to the paragraph it's attached to. | | [IconMarginSpan](/reference/kotlin/android/text/style/IconMarginSpan) | Paragraph affecting span, that draws a bitmap at the beginning of a text. | | [LineHeightSpan.Standard](/reference/kotlin/android/text/style/LineHeightSpan.Standard) | Default implementation of the [LineHeightSpan](/reference/kotlin/android/text/style/LineHeightSpan), which changes the line height of the attached paragraph. | | [LineHeightSpan.WithDensity](/reference/kotlin/android/text/style/LineHeightSpan.WithDensity) | The classes that affect the line height of paragraph with respect to density, should implement this interface. | |\n\nSummary\n-------"]]