public final class

ListItemAdapter.BackgroundStyle

extends java.lang.Object

 java.lang.Object

↳androidx.car.widget.ListItemAdapter.BackgroundStyle

Overview

Constant class for background style of items.

Summary

Fields
public static final intCARD

Sets each item in CardView with a rounded corner background and shadow.

public static final intNONE

Sets the background color of each item to none (transparent).

public static final intPANEL

Sets background of each item so the combined list looks like one elongated card, namely top and bottom item will have rounded corner at only top/bottom side respectively.

public static final intSOLID

Sets the background color of each item.

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

Fields

public static final int SOLID

Sets the background color of each item. Background can be configured by .

public static final int NONE

Sets the background color of each item to none (transparent).

public static final int CARD

Sets each item in CardView with a rounded corner background and shadow.

public static final int PANEL

Sets background of each item so the combined list looks like one elongated card, namely top and bottom item will have rounded corner at only top/bottom side respectively. If only one item exists, it will have both top and bottom rounded corner.