Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

belongs to Maven artifact androidx.car:car:1.0.0-alpha5

ListItemProvider

public abstract class ListItemProvider
extends Object

java.lang.Object
   ↳ androidx.car.widget.ListItemProvider<VH extends androidx.car.widget.ListItem.ViewHolder>


Supplies data as ListItem.

Summary

Nested classes

class ListItemProvider.ListProvider<VH extends ListItem.ViewHolder>

A simple provider that wraps around a list. 

Public constructors

ListItemProvider()

Public methods

abstract ListItem<VH> get(int position)

Returns ListItem at requested position.

abstract int size()

Inherited methods

Public constructors

ListItemProvider

public ListItemProvider ()

Public methods

get

public abstract ListItem<VH> get (int position)

Returns ListItem at requested position.

Parameters
position int

Returns
ListItem<VH>

size

public abstract int size ()

Returns
int number of total items.