public interface Carousel.Adapter


Adapter for a Carousel

Summary

Public methods

abstract int

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

Added in 2.2.0-alpha13
abstract int count()

Number of items you want to display in the Carousel

Returns
int

number of items

onNewItem

Added in 2.2.0-alpha13
abstract void onNewItem(int index)

Callback when we reach a new index

Parameters
int index

populate

Added in 2.2.0-alpha13
abstract void populate(View view, int index)

Callback to populate the view for the given index

Parameters
View view
int index