public abstract static class Component.ContainerBuilder<T extends Component.ContainerBuilder<T>> extends Component.Builder<T>
mResourceResolver
Modifier | Constructor and Description |
---|---|
protected |
ContainerBuilder(ComponentContext c,
int defStyleAttr,
int defStyleRes,
Component component) |
Modifier and Type | Method and Description |
---|---|
abstract T |
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.
|
abstract T |
alignItems(YogaAlign alignItems)
The AlignItems property describes how to align children along the cross axis of their
container.
|
abstract T |
child(Component.Builder<?> child) |
abstract T |
child(Component child) |
abstract T |
justifyContent(YogaJustify justifyContent)
The JustifyContent property describes how to align children within the main axis of a
container.
|
abstract T |
reverse(boolean reverse)
Set this to true if you want the container to be laid out in reverse.
|
abstract T |
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, backgroundDynamicDrawable, backgroundRes, border, build, checkArgs, clickable, clickHandler, clipChildren, clipToOutline, componentTag, contentDescription, contentDescription, contentDescription, dispatchPopulateAccessibilityEventHandler, duplicateChildrenStates, duplicateParentState, enabled, flex, flexBasisAttr, flexBasisAttr, flexBasisDip, flexBasisPercent, flexBasisPx, flexBasisRes, flexGrow, flexShrink, focusable, focusChangeHandler, focusedHandler, foreground, foregroundAttr, foregroundAttr, foregroundColor, foregroundColor, foregroundRes, fullImpressionHandler, getContext, getThis, handle, hasBackgroundSet, hasClickHandlerSet, heightAttr, heightAttr, heightDip, heightPercent, heightPx, heightRes, importantForAccessibility, interceptTouchHandler, invisibleHandler, isReferenceBaseline, key, layerType, layoutDirection, longClickHandler, marginAttr, marginAttr, marginAuto, marginDip, marginPercent, marginPx, marginRes, maxHeightAttr, maxHeightAttr, maxHeightDip, maxHeightPercent, maxHeightPx, maxHeightRes, maxWidthAttr, maxWidthAttr, maxWidthDip, maxWidthPercent, maxWidthPx, maxWidthRes, metadata, 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, setComponent, shadowElevation, shadowElevationAttr, shadowElevationAttr, shadowElevationDip, shadowElevationPx, shadowElevationRes, stateListAnimator, stateListAnimatorRes, testKey, touchExpansionAttr, touchExpansionAttr, touchExpansionDip, touchExpansionPx, touchExpansionRes, touchHandler, transitionKey, transitionKeyType, transitionName, translationX, translationY, unfocusedHandler, useHeightAsBaseline, viewTag, viewTags, visibilityChangedHandler, visibleHandler, visibleHeightRatio, visibleWidthRatio, widthAttr, widthAttr, widthDip, widthPercent, widthPx, widthRes, wrapInView
protected ContainerBuilder(ComponentContext c, int defStyleAttr, int defStyleRes, Component component)
public abstract T alignContent(YogaAlign alignContent)
Default: YogaAlign.AUTO
public abstract T alignItems(YogaAlign alignItems)
Default: YogaAlign.STRETCH
public abstract T child(Component.Builder<?> child)
public abstract T justifyContent(YogaJustify justifyContent)
Default: YogaJustify.FLEX_START
public abstract T reverse(boolean reverse)
public abstract T wrap(YogaWrap wrap)
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.dev/docs/flex-wrap for more information.
Default: YogaWrap.NO_WRAP