public interface

Carousel.Adapter

 androidx.constraintlayout.helper.widget.Carousel.Adapter

Overview

Adapter for a Carousel

Summary

Methods
public intcount()

Number of items you want to display in the Carousel

public voidonNewItem(int index)

Callback when we reach a new index

public voidpopulate(View view, int index)

Callback to populate the view for the given index

Methods

public int count()

Number of items you want to display in the Carousel

Returns:

number of items

public void populate(View view, int index)

Callback to populate the view for the given index

Parameters:

view:
index:

public void onNewItem(int index)

Callback when we reach a new index

Parameters:

index: