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

AlphaJumpAdapter

public interface AlphaJumpAdapter

androidx.car.widget.AlphaJumpAdapter


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

Summary

Public methods

abstract List<AlphaJumpBucket> 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(AlphaJumpBucket bucket)

Called every time the alpha-jump menu is left.

Public methods

getAlphaJumpBuckets

public abstract List<AlphaJumpBucket> getAlphaJumpBuckets ()

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

Returns
List<AlphaJumpBucket>

onAlphaJumpEnter

public abstract void onAlphaJumpEnter ()

Called every time the alpha-jump menu is entered.

onAlphaJumpLeave

public abstract void onAlphaJumpLeave (AlphaJumpBucket bucket)

Called every time the alpha-jump menu is left.

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