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

ListItemAdapter.BackgroundStyle

public static final class ListItemAdapter.BackgroundStyle
extends Object

java.lang.Object
   ↳ androidx.car.widget.ListItemAdapter.BackgroundStyle


Constant class for background style of items.

Summary

Constants

int CARD

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

int NONE

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

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.

int SOLID

Sets the background color of each item.

Inherited methods

Constants

CARD

int CARD

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

Constant Value: 2 (0x00000002)

NONE

int NONE

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

Constant Value: 1 (0x00000001)

PANEL

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.

Constant Value: 3 (0x00000003)

SOLID

int SOLID

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

Constant Value: 0 (0x00000000)