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

ListItemProvider.ListProvider

public static class ListItemProvider.ListProvider
extends ListItemProvider

java.lang.Object
   ↳ androidx.car.widget.ListItemProvider
     ↳ androidx.car.widget.ListItemProvider.ListProvider


A simple provider that wraps around a list.

Summary

Public constructors

ListItemProvider.ListProvider(List<ListItem> items)

Public methods

ListItem get(int position)

Returns ListItem at requested position.

int size()

Inherited methods

Public constructors

ListItemProvider.ListProvider

ListItemProvider.ListProvider (List<ListItem> items)

Parameters
items List

Public methods

get

ListItem get (int position)

Returns ListItem at requested position.

Parameters
position int

Returns
ListItem

size

int size ()

Returns
int number of total items.