Stay organized with collections
Save and categorize content based on your preferences.
NoCopySpan
interface NoCopySpan
Known Direct Subclasses
NoCopySpan.Concrete |
Convenience equivalent for when you would just want a new Object() for a span but want it to be no-copy.
|
SpanWatcher |
When an object of this type is attached to a Spannable, its methods will be called to notify it that other markup objects have been added, changed, or removed.
|
TextWatcher |
When an object of this type is attached to an Editable, its methods will be called when the text is changed.
|
|
Known Indirect Subclasses
|
This interface should be added to a span object that should not be copied into a new Spanned when performing a slice or copy operation on the original Spanned it was placed in.
Summary
Nested classes |
open |
Convenience equivalent for when you would just want a new Object() for a span but want it to be no-copy.
|
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-04-17 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-04-17 UTC."],[],[],null,["# NoCopySpan\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nNoCopySpan\n==========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/text/NoCopySpan \"View this page in Java\") \n\n```\ninterface NoCopySpan\n```\n\n|------------------------------|\n| [android.text.NoCopySpan](#) |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [NoCopySpan.Concrete](/reference/kotlin/android/text/NoCopySpan.Concrete), [SpanWatcher](/reference/kotlin/android/text/SpanWatcher), [TextWatcher](/reference/kotlin/android/text/TextWatcher) |---------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------| | [NoCopySpan.Concrete](/reference/kotlin/android/text/NoCopySpan.Concrete) | Convenience equivalent for when you would just want a new Object() for a span but want it to be no-copy. | | [SpanWatcher](/reference/kotlin/android/text/SpanWatcher) | When an object of this type is attached to a Spannable, its methods will be called to notify it that other markup objects have been added, changed, or removed. | | [TextWatcher](/reference/kotlin/android/text/TextWatcher) | When an object of this type is attached to an Editable, its methods will be called when the text is changed. | |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Indirect Subclasses [AbsListView](../widget/AbsListView.html#), [ExpandableListView](../widget/ExpandableListView.html#), [GridView](../widget/GridView.html#), [ListView](../widget/ListView.html#), [MultiTapKeyListener](/reference/kotlin/android/text/method/MultiTapKeyListener), [PasswordTransformationMethod](/reference/kotlin/android/text/method/PasswordTransformationMethod), [PhoneNumberFormattingTextWatcher](../telephony/PhoneNumberFormattingTextWatcher.html#), [TextKeyListener](/reference/kotlin/android/text/method/TextKeyListener) |----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------| | [AbsListView](../widget/AbsListView.html#) | Base class that can be used to implement virtualized lists of items. | | [ExpandableListView](../widget/ExpandableListView.html#) | A view that shows items in a vertically scrolling two-level list. | | [GridView](../widget/GridView.html#) | A view that shows items in two-dimensional scrolling grid. | | [ListView](../widget/ListView.html#) | Displays a vertically-scrollable collection of views, where each view is positioned immediately below the previous view in the list. | | [MultiTapKeyListener](/reference/kotlin/android/text/method/MultiTapKeyListener) | This is the standard key listener for alphabetic input on 12-key keyboards. | | [PasswordTransformationMethod](/reference/kotlin/android/text/method/PasswordTransformationMethod) | \u003cbr /\u003e | | [PhoneNumberFormattingTextWatcher](../telephony/PhoneNumberFormattingTextWatcher.html#) | Watches a [android.widget.TextView](../widget/TextView.html#) and if a phone number is entered will format it. | | [TextKeyListener](/reference/kotlin/android/text/method/TextKeyListener) | This is the key listener for typing normal text. | |\n\nThis interface should be added to a span object that should not be copied into a new Spanned when performing a slice or copy operation on the original Spanned it was placed in.\n\nSummary\n-------\n\n| Nested classes ||\n|------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open | [Concrete](/reference/kotlin/android/text/NoCopySpan.Concrete) Convenience equivalent for when you would just want a new Object() for a span but want it to be no-copy. |"]]