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

abstract void adjustListItemSelectionBounds(Rect bounds)

Called to allow the list item to adjust the bounds shown for its selection.

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.