Carousel.Adapter
public
static
interface
Carousel.Adapter
androidx.constraintlayout.helper.widget.Carousel.Adapter |
Adapter for a Carousel
Summary
Public methods | |
---|---|
abstract
int
|
count()
Number of items you want to display in the Carousel |
abstract
void
|
onNewItem(int index)
Callback when we reach a new index |
abstract
void
|
populate(View view, int index)
Callback to populate the view for the given index |
Public methods
count
public abstract int count ()
Number of items you want to display in the Carousel
Returns | |
---|---|
int |
number of items |
onNewItem
public abstract void onNewItem (int index)
Callback when we reach a new index
populate
public abstract void populate (View view, int index)
Callback to populate the view for the given index