Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

AlphaJumpBucket

public interface AlphaJumpBucket

androidx.car.widget.AlphaJumpBucket


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

public abstract int getIndex ()

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

Returns
int

getLabel

public abstract CharSequence getLabel ()

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

Returns
CharSequence

isEmpty

public abstract boolean isEmpty ()

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

Returns
boolean