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

IAlphaJumpAdapter

public interface IAlphaJumpAdapter

androidx.car.widget.IAlphaJumpAdapter


An interface that you can implement on your Adapter to enable support for Alpha-Jump.

Summary

Nested classes

interface IAlphaJumpAdapter.Bucket

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

Public methods

abstract Collection<IAlphaJumpAdapter.Bucket> getAlphaJumpBuckets()

Generate and populate the buckets used to populate the alpha-jump menu.

abstract void onAlphaJumpEnter()

Called every time the alpha-jump menu is entered.

abstract void onAlphaJumpLeave(IAlphaJumpAdapter.Bucket bucket)

Called every time the alpha-jump menu is left.

Public methods

getAlphaJumpBuckets

public abstract Collection<IAlphaJumpAdapter.Bucket> getAlphaJumpBuckets ()

Generate and populate the buckets used to populate the alpha-jump menu.

Returns
Collection<IAlphaJumpAdapter.Bucket>

onAlphaJumpEnter

public abstract void onAlphaJumpEnter ()

Called every time the alpha-jump menu is entered.

onAlphaJumpLeave

public abstract void onAlphaJumpLeave (IAlphaJumpAdapter.Bucket bucket)

Called every time the alpha-jump menu is left.

Parameters
bucket IAlphaJumpAdapter.Bucket: The IAlphaJumpAdapter.Bucket that the user clicked on, and should be jumped to.