Stay organized with collections
Save and categorize content based on your preferences.
SelectionBoundsAdjuster
interface SelectionBoundsAdjuster
The top-level view of a list item can implement this interface to allow itself to modify the bounds of the selection shown for that item.
Summary
Public methods |
abstract Unit |
Called to allow the list item to adjust the bounds shown for its selection.
|
Public methods
adjustListItemSelectionBounds
abstract fun adjustListItemSelectionBounds(bounds: Rect!): Unit
Called to allow the list item to adjust the bounds shown for its selection.
Parameters |
bounds |
Rect!: On call, this contains the bounds the list has selected for the item (that is the bounds of the entire view). The values can be modified as desired. |
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,["# AbsListView.SelectionBoundsAdjuster\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSelectionBoundsAdjuster\n=======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/widget/AbsListView.SelectionBoundsAdjuster \"View this page in Java\") \n\n```\ninterface SelectionBoundsAdjuster\n```\n\n|---------------------------------------------------------|\n| [android.widget.AbsListView.SelectionBoundsAdjuster](#) |\n\nThe top-level view of a list item can implement this interface to allow itself to modify the bounds of the selection shown for that item.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [adjustListItemSelectionBounds](#adjustListItemSelectionBounds(android.graphics.Rect))`(`bounds:` `[Rect](../graphics/Rect.html#)!`)` Called to allow the list item to adjust the bounds shown for its selection. |\n\nPublic methods\n--------------\n\n### adjustListItemSelectionBounds\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun adjustListItemSelectionBounds(bounds: Rect!): Unit\n```\n\nCalled to allow the list item to adjust the bounds shown for its selection.\n\n| Parameters ||\n|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `bounds` | [Rect](../graphics/Rect.html#)!: On call, this contains the bounds the list has selected for the item (that is the bounds of the entire view). The values can be modified as desired. |"]]