public static class Row.Builder extends Component.ContainerBuilder<Row.Builder>
mResourceResolver
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Row.Builder |
alignContent(YogaAlign alignContent)
The AlignSelf property has the same options and effect as AlignItems but instead of affecting
the children within a container, you can apply this property to a single child to change its
alignment within its parent.
|
Row.Builder |
alignItems(YogaAlign alignItems)
The AlignItems property describes how to align children along the cross axis of their
container.
|
Row |
build() |
Row.Builder |
child(Component.Builder<?> child) |
Row.Builder |
child(Component child) |
Row.Builder |
getThis() |
Row.Builder |
justifyContent(YogaJustify justifyContent)
The JustifyContent property describes how to align children within the main axis of a
container.
|
Row.Builder |
reverse(boolean reverse)
Set this to true if you want the container to be laid out in reverse.
|
protected void |
setComponent(Component component) |
Row.Builder |
wrap(YogaWrap wrap)
The FlexWrap property is set on containers and controls what happens when children overflow
the size of the container along the main axis.
|
accessibilityHeading, accessibilityRole, accessibilityRoleDescription, accessibilityRoleDescription, accessibilityRoleDescription, alignSelf, alpha, alpha, aspectRatio, background, backgroundAttr, backgroundAttr, backgroundColor, backgroundColor, backgroundRes, border, checkArgs, clickable, clickHandler, clipChildren, clipToOutline, clone, contentDescription, contentDescription, contentDescription, dispatchPopulateAccessibilityEventHandler, duplicateParentState, enabled, flex, flexBasisAttr, flexBasisAttr, flexBasisDip, flexBasisPercent, flexBasisPx, flexBasisRes, flexGrow, flexShrink, focusable, focusChangeHandler, focusedHandler, foreground, foregroundAttr, foregroundAttr, foregroundColor, foregroundRes, fullImpressionHandler, getContext, handle, hasBackgroundSet, hasClickHandlerSet, heightAttr, heightAttr, heightDip, heightPercent, heightPx, heightRes, importantForAccessibility, init, interceptTouchHandler, invisibleHandler, isReferenceBaseline, key, layoutDirection, longClickHandler, marginAttr, marginAttr, marginAuto, marginDip, marginPercent, marginPx, marginRes, maxHeightAttr, maxHeightAttr, maxHeightDip, maxHeightPercent, maxHeightPx, maxHeightRes, maxWidthAttr, maxWidthAttr, maxWidthDip, maxWidthPercent, maxWidthPx, maxWidthRes, minHeightAttr, minHeightAttr, minHeightDip, minHeightPercent, minHeightPx, minHeightRes, minWidthAttr, minWidthAttr, minWidthDip, minWidthPercent, minWidthPx, minWidthRes, onInitializeAccessibilityEventHandler, onInitializeAccessibilityNodeInfoHandler, onPopulateAccessibilityEventHandler, onRequestSendAccessibilityEventHandler, outlineProvider, paddingAttr, paddingAttr, paddingDip, paddingPercent, paddingPx, paddingRes, performAccessibilityActionHandler, positionAttr, positionAttr, positionDip, positionPercent, positionPx, positionRes, positionType, rotation, rotation, rotationX, rotationY, scale, scaleX, scaleY, selected, sendAccessibilityEventHandler, sendAccessibilityEventUncheckedHandler, shadowElevation, shadowElevationAttr, shadowElevationAttr, shadowElevationDip, shadowElevationPx, shadowElevationRes, stateListAnimator, stateListAnimatorRes, testKey, touchExpansionAttr, touchExpansionAttr, touchExpansionDip, touchExpansionPx, touchExpansionRes, touchHandler, transitionKey, transitionKeyType, translationX, translationY, unfocusedHandler, useHeightAsBaseline, viewTag, viewTags, visibilityChangedHandler, visibleHandler, visibleHeightRatio, visibleWidthRatio, widthAttr, widthAttr, widthDip, widthPercent, widthPx, widthRes, wrapInView
protected void setComponent(Component component)
setComponent
in class Component.Builder<Row.Builder>
public Row.Builder child(Component child)
child
in class Component.ContainerBuilder<Row.Builder>
public Row.Builder child(Component.Builder<?> child)
child
in class Component.ContainerBuilder<Row.Builder>
public Row.Builder alignContent(YogaAlign alignContent)
Component.ContainerBuilder
Default: YogaAlign.AUTO
alignContent
in class Component.ContainerBuilder<Row.Builder>
public Row.Builder alignItems(YogaAlign alignItems)
Component.ContainerBuilder
Default: YogaAlign.STRETCH
alignItems
in class Component.ContainerBuilder<Row.Builder>
public Row.Builder justifyContent(YogaJustify justifyContent)
Component.ContainerBuilder
Default: YogaJustify.FLEX_START
justifyContent
in class Component.ContainerBuilder<Row.Builder>
public Row.Builder wrap(YogaWrap wrap)
Component.ContainerBuilder
YogaWrap.WRAP
then its children will wrap to the next line instead of overflowing.
The next line will have the same FlexDirection as the first line and will appear next to the first line along the cross axis - below it if using FlexDirection = Column and to the right if using FlexDirection = Row. See https://yogalayout.com/docs/flex-wrap for more information.
Default: YogaWrap.NO_WRAP
wrap
in class Component.ContainerBuilder<Row.Builder>
public Row.Builder reverse(boolean reverse)
Component.ContainerBuilder
reverse
in class Component.ContainerBuilder<Row.Builder>
public Row.Builder getThis()
getThis
in class Component.Builder<Row.Builder>
public Row build()
build
in class Component.Builder<Row.Builder>