belongs to Maven artifact androidx.car:car:1.0.0-alpha1

IAlphaJumpAdapter.Bucket

public static interface IAlphaJumpAdapter.Bucket

androidx.car.widget.IAlphaJumpAdapter.Bucket


A bucket represents a "button" in the alpha-jump menu.

Summary

Public methods

abstract int getIndex()

Return the index of the first item that this bucket matches in the list.

abstract CharSequence getLabel()

Return the label for this bucket, that is displayed at the text to the user.

abstract boolean isEmpty()

Return true if the bucket is empty (and therefore the button should be displayed disabled).

Public methods

getIndex

int getIndex ()

Return the index of the first item that this bucket matches in the list.

Returns
int

getLabel

CharSequence getLabel ()

Return the label for this bucket, that is displayed at the text to the user.

Returns
CharSequence

isEmpty

boolean isEmpty ()

Return true if the bucket is empty (and therefore the button should be displayed disabled).

Returns
boolean