Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

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

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