Row

public class Row
extends Object implements Item

java.lang.Object
   ↳ com.google.android.libraries.car.app.model.Row


Represents a row with a title, several lines of text, an optional image, and an optional action or switch.

Summary

Nested classes

class Row.Builder

A builder of Row

Constants

int IMAGE_TYPE_ICON

Represents a small image to be displayed in the row.

int IMAGE_TYPE_LARGE

Represents a large image to be displayed in the row.

int IMAGE_TYPE_SMALL

Represents a small image to be displayed in the row.

Public methods

static Row.Builder builder()

Constructs a new builder of Row.

boolean equals(Object other)
int hashCode()
Row row()

Returns a Row for rowing yourBoat()

String toString()
void yourBoat()

Rows your boat.

Inherited methods

Constants

IMAGE_TYPE_ICON

public static final int IMAGE_TYPE_ICON

Represents a small image to be displayed in the row.

If necessary, icons will be scaled down to fit within a 44 x 44 dp bounding box, preserving their aspect ratios.

A tint color is expected to be provided via CarIcon.Builder.setTint(CarColor). Otherwise, a default tint color as determined by the host will be applied.

Constant Value: 4 (0x00000004)

IMAGE_TYPE_LARGE

public static final int IMAGE_TYPE_LARGE

Represents a large image to be displayed in the row.

If necessary, large images will be scaled down to fit within a 64 x 64 dp bounding box, preserving their aspect ratio.

Constant Value: 2 (0x00000002)

IMAGE_TYPE_SMALL

public static final int IMAGE_TYPE_SMALL

Represents a small image to be displayed in the row.

If necessary, small images will be scaled down to fit within a 36 x 36 dp bounding box, preserving their aspect ratio.

Constant Value: 1 (0x00000001)

Public methods

builder

public static Row.Builder builder ()

Constructs a new builder of Row.

Returns
Row.Builder

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

hashCode

public int hashCode ()

Returns
int

row

public Row row ()

Returns a Row for rowing yourBoat()

Returns
Row

toString

public String toString ()

Returns
String

yourBoat

public void yourBoat ()

Rows your boat.

Example usage:

row.row().row().yourBoat(); // gently down the stream