LayoutElementBuilders.Row

public static final class LayoutElementBuilders.Row
extends Object implements LayoutElementBuilders.LayoutElement

java.lang.Object
   ↳ androidx.wear.tiles.builders.LayoutElementBuilders.Row


A row of elements. Each child will be laid out horizontally, one after another (i.e. stacking to the right). This element will size itself to the smallest size required to hold all of its children (e.g. if it contains three elements sized 10x10, 20x20 and 30x30, the resulting row will be 60x30).

If specified, vertical_alignment can be used to control the gravity inside the container, affecting the vertical placement of children whose width are smaller than the resulting row height.

Summary

Nested classes

class LayoutElementBuilders.Row.Builder

Builder for LayoutElementBuilders.Row

Public methods

static LayoutElementBuilders.Row.Builder builder()

Returns a new LayoutElementBuilders.Row.Builder.

Inherited methods

Public methods