public class

ListItemProvider.ListProvider<VH extends ListItem.ViewHolder>

extends ListItemProvider

 java.lang.Object

androidx.car.widget.ListItemProvider

↳androidx.car.widget.ListItemProvider.ListProvider<VH>

Overview

A simple provider that wraps around a list.

Summary

Constructors
publicListProvider(java.util.List<ListItem> items)

Methods
public abstract ListItem<ListItem.ViewHolder>get(int position)

Returns ListItem at requested position.

public abstract intsize()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public ListProvider(java.util.List<ListItem> items)

Methods

public abstract ListItem<ListItem.ViewHolder> get(int position)

Returns ListItem at requested position.

public abstract int size()

Returns:

number of total items.