The Android Developer Challenge is back! Submit your idea before December 2.

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.