Stay organized with collections
Save and categorize content based on your preferences.
EllipsizeCallback
interface EllipsizeCallback
Known Direct Subclasses
BoringLayout |
A BoringLayout is a very simple Layout implementation for text that fits on a single line and is all left-to-right characters.
|
|
Summary
Public methods |
abstract Unit |
This method is called to report that the specified region of text was ellipsized away by a call to #ellipsize.
|
Public methods
ellipsized
abstract fun ellipsized(
start: Int,
end: Int
): Unit
This method is called to report that the specified region of text was ellipsized away by a call to #ellipsize.
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# TextUtils.EllipsizeCallback\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nEllipsizeCallback\n=================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/text/TextUtils.EllipsizeCallback \"View this page in Java\") \n\n```\ninterface EllipsizeCallback\n```\n\n|-----------------------------------------------|\n| [android.text.TextUtils.EllipsizeCallback](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [BoringLayout](/reference/kotlin/android/text/BoringLayout) |-------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------| | [BoringLayout](/reference/kotlin/android/text/BoringLayout) | A BoringLayout is a very simple Layout implementation for text that fits on a single line and is all left-to-right characters. | |\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [ellipsized](#ellipsized(kotlin.Int,%20kotlin.Int))`(`start:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `end:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` This method is called to report that the specified region of text was ellipsized away by a call to #ellipsize. |\n\nPublic methods\n--------------\n\n### ellipsized\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun ellipsized(\n start: Int, \n end: Int\n): Unit\n```\n\nThis method is called to report that the specified region of text was ellipsized away by a call to #ellipsize."]]