Stay organized with collections
Save and categorize content based on your preferences.
AbsListView.SelectionBoundsAdjuster
public
static
interface
AbsListView.SelectionBoundsAdjuster
android.widget.AbsListView.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
adjustListItemSelectionBounds
public abstract void adjustListItemSelectionBounds (Rect bounds)
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](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nAbsListView.SelectionBoundsAdjuster\n===================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/widget/AbsListView.SelectionBoundsAdjuster \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nAbsListView.SelectionBoundsAdjuster\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------------|\n| android.widget.AbsListView.SelectionBoundsAdjuster |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThe top-level view of a list item can implement this interface to allow\nitself to modify the bounds of the selection shown for that item.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[adjustListItemSelectionBounds](/reference/android/widget/AbsListView.SelectionBoundsAdjuster#adjustListItemSelectionBounds(android.graphics.Rect))`(`[Rect](/reference/android/graphics/Rect)` bounds) ` 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](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void adjustListItemSelectionBounds (Rect bounds)\n```\n\nCalled to allow the list item to adjust the bounds shown for\nits selection.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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. \u003cbr /\u003e |"]]