public final class CommonProps extends java.lang.Object implements LayoutProps, Equivalence<CommonProps>
Component
s.Modifier and Type | Class and Description |
---|---|
static class |
CommonProps.DefaultLayoutProps |
Constructor and Description |
---|
CommonProps() |
Modifier and Type | Method and Description |
---|---|
void |
accessibilityHeading(boolean isHeading) |
void |
accessibilityRole(java.lang.String role) |
void |
accessibilityRoleDescription(java.lang.CharSequence roleDescription) |
void |
alignSelf(YogaAlign alignSelf) |
void |
alpha(float alpha) |
void |
ambientShadowColor(int ambientShadowColor) |
void |
aspectRatio(float aspectRatio) |
void |
background(Drawable background) |
void |
border(Border border) |
void |
clickable(boolean isClickable) |
void |
clickHandler(EventHandler<ClickEvent> clickHandler) |
void |
clipChildren(boolean clipChildren) |
void |
clipToOutline(boolean clipToOutline) |
void |
componentTag(java.lang.Object componentTag) |
void |
contentDescription(java.lang.CharSequence contentDescription) |
void |
copyLayoutProps(LayoutProps layoutProps) |
void |
dispatchPopulateAccessibilityEventHandler(EventHandler<DispatchPopulateAccessibilityEventEvent> dispatchPopulateAccessibilityEventHandler) |
void |
duplicateChildrenStates(boolean duplicateChildrenStates) |
void |
duplicateParentState(boolean duplicateParentState) |
void |
enabled(boolean isEnabled) |
void |
flex(float flex) |
void |
flexBasisAuto() |
void |
flexBasisPercent(float percent) |
void |
flexBasisPx(int flexBasis) |
void |
flexGrow(float flexGrow) |
void |
flexShrink(float flexShrink) |
void |
focusable(boolean isFocusable) |
void |
focusChangeHandler(EventHandler<FocusChangedEvent> focusChangeHandler) |
void |
focusedHandler(EventHandler<FocusedVisibleEvent> focusedHandler) |
void |
foreground(Drawable foreground) |
void |
fullImpressionHandler(EventHandler<FullImpressionVisibleEvent> fullImpressionHandler) |
Drawable |
getBackground() |
EventHandler<ClickEvent> |
getClickHandler() |
java.lang.Object |
getComponentTag() |
int |
getDefStyleAttr() |
int |
getDefStyleRes() |
boolean |
getFocusable() |
EventHandler<FocusChangedEvent> |
getFocusChangeHandler() |
EventHandler<InterceptTouchEvent> |
getInterceptTouchHandler() |
EventHandler<LongClickEvent> |
getLongClickHandler() |
NodeInfo |
getNullableNodeInfo() |
NodeInfo |
getOrCreateNodeInfo() |
java.lang.String |
getTestKey() |
EventHandler<TouchEvent> |
getTouchHandler() |
java.lang.String |
getTransitionKey() |
Transition.TransitionKeyType |
getTransitionKeyType() |
void |
heightAuto() |
void |
heightPercent(float percent) |
void |
heightPx(int height) |
void |
importantForAccessibility(int importantForAccessibility) |
void |
interceptTouchHandler(EventHandler<InterceptTouchEvent> interceptTouchHandler) |
void |
invisibleHandler(EventHandler<InvisibleEvent> invisibleHandler) |
boolean |
isEquivalentTo(CommonProps o) |
void |
isReferenceBaseline(boolean isReferenceBaseline) |
void |
layerType(int type,
Paint paint) |
void |
layoutDirection(YogaDirection direction) |
void |
longClickHandler(EventHandler<LongClickEvent> longClickHandler) |
void |
marginAuto(YogaEdge edge) |
void |
marginPercent(YogaEdge edge,
float percent) |
void |
marginPx(YogaEdge edge,
int margin) |
void |
maxHeightPercent(float percent) |
void |
maxHeightPx(int maxHeight) |
void |
maxWidthPercent(float percent) |
void |
maxWidthPx(int maxWidth) |
void |
minHeightPercent(float percent) |
void |
minHeightPx(int minHeight) |
void |
minWidthPercent(float percent) |
void |
minWidthPx(int minWidth) |
void |
onInitializeAccessibilityEventHandler(EventHandler<OnInitializeAccessibilityEventEvent> onInitializeAccessibilityEventHandler) |
void |
onInitializeAccessibilityNodeInfoHandler(EventHandler<OnInitializeAccessibilityNodeInfoEvent> onInitializeAccessibilityNodeInfoHandler) |
void |
onPopulateAccessibilityEventHandler(EventHandler<OnPopulateAccessibilityEventEvent> onPopulateAccessibilityEventHandler) |
void |
onRequestSendAccessibilityEventHandler(EventHandler<OnRequestSendAccessibilityEventEvent> onRequestSendAccessibilityEventHandler) |
void |
outlineProvider(ViewOutlineProvider outlineProvider) |
void |
paddingPercent(YogaEdge edge,
float percent) |
void |
paddingPx(YogaEdge edge,
int padding) |
void |
performAccessibilityActionHandler(EventHandler<PerformAccessibilityActionEvent> performAccessibilityActionHandler) |
void |
positionPercent(YogaEdge edge,
float percent) |
void |
positionPx(YogaEdge edge,
int position) |
void |
positionType(YogaPositionType positionType) |
void |
rotation(float rotation) |
void |
rotationX(float rotationX) |
void |
rotationY(float rotationY) |
void |
scale(float scale) |
void |
selected(boolean isSelected) |
void |
sendAccessibilityEventHandler(EventHandler<SendAccessibilityEventEvent> sendAccessibilityEventHandler) |
void |
sendAccessibilityEventUncheckedHandler(EventHandler<SendAccessibilityEventUncheckedEvent> sendAccessibilityEventUncheckedHandler) |
void |
setBorderWidth(YogaEdge edge,
float borderWidth)
Used by
DebugLayoutNodeEditor |
void |
setStyle(int defStyleAttr,
int defStyleRes) |
void |
shadowElevationPx(float shadowElevation) |
void |
spotShadowColor(int spotShadowColor) |
void |
stateListAnimator(StateListAnimator stateListAnimator) |
void |
stateListAnimatorRes(int resId) |
void |
testKey(java.lang.String testKey) |
void |
touchExpansionPx(YogaEdge edge,
int touchExpansion) |
void |
touchHandler(EventHandler<TouchEvent> touchHandler) |
void |
transitionKey(java.lang.String key,
java.lang.String ownerKey) |
void |
transitionKeyType(Transition.TransitionKeyType type) |
void |
transitionName(java.lang.String transitionName) |
void |
unfocusedHandler(EventHandler<UnfocusedVisibleEvent> unfocusedHandler) |
void |
useHeightAsBaseline(boolean useHeightAsBaseline) |
void |
viewTag(java.lang.Object viewTag) |
void |
viewTags(<any> viewTags) |
void |
visibilityChangedHandler(EventHandler<VisibilityChangedEvent> visibilityChangedHandler) |
void |
visibleHandler(EventHandler<VisibleEvent> visibleHandler) |
void |
visibleHeightRatio(float visibleHeightRatio) |
void |
visibleWidthRatio(float visibleWidthRatio) |
void |
widthAuto() |
void |
widthPercent(float percent) |
void |
widthPx(int width) |
void |
wrapInView() |
public void setStyle(int defStyleAttr, int defStyleRes)
public void positionType(YogaPositionType positionType)
positionType
in interface LayoutProps
public void positionPx(YogaEdge edge, int position)
positionPx
in interface LayoutProps
public void widthPx(int width)
widthPx
in interface LayoutProps
public void heightPx(int height)
heightPx
in interface LayoutProps
public void background(Drawable background)
public void testKey(java.lang.String testKey)
public java.lang.String getTestKey()
public java.lang.Object getComponentTag()
public void componentTag(java.lang.Object componentTag)
public void wrapInView()
public void layoutDirection(YogaDirection direction)
layoutDirection
in interface LayoutProps
public void alignSelf(YogaAlign alignSelf)
alignSelf
in interface LayoutProps
public void flex(float flex)
flex
in interface LayoutProps
public void flexGrow(float flexGrow)
flexGrow
in interface LayoutProps
public void flexShrink(float flexShrink)
flexShrink
in interface LayoutProps
public void flexBasisPx(int flexBasis)
flexBasisPx
in interface LayoutProps
public void flexBasisPercent(float percent)
flexBasisPercent
in interface LayoutProps
public void importantForAccessibility(int importantForAccessibility)
public void duplicateParentState(boolean duplicateParentState)
public void duplicateChildrenStates(boolean duplicateChildrenStates)
public void marginPx(YogaEdge edge, int margin)
marginPx
in interface LayoutProps
public void marginPercent(YogaEdge edge, float percent)
marginPercent
in interface LayoutProps
public void marginAuto(YogaEdge edge)
marginAuto
in interface LayoutProps
public void paddingPx(YogaEdge edge, int padding)
paddingPx
in interface LayoutProps
public void paddingPercent(YogaEdge edge, float percent)
paddingPercent
in interface LayoutProps
public void border(Border border)
public void stateListAnimator(StateListAnimator stateListAnimator)
public void stateListAnimatorRes(int resId)
public void positionPercent(YogaEdge edge, float percent)
positionPercent
in interface LayoutProps
public void widthPercent(float percent)
widthPercent
in interface LayoutProps
public void minWidthPx(int minWidth)
minWidthPx
in interface LayoutProps
public void minWidthPercent(float percent)
minWidthPercent
in interface LayoutProps
public void maxWidthPx(int maxWidth)
maxWidthPx
in interface LayoutProps
public void maxWidthPercent(float percent)
maxWidthPercent
in interface LayoutProps
public void heightPercent(float percent)
heightPercent
in interface LayoutProps
public void minHeightPx(int minHeight)
minHeightPx
in interface LayoutProps
public void minHeightPercent(float percent)
minHeightPercent
in interface LayoutProps
public void maxHeightPx(int maxHeight)
maxHeightPx
in interface LayoutProps
public void maxHeightPercent(float percent)
maxHeightPercent
in interface LayoutProps
public void aspectRatio(float aspectRatio)
aspectRatio
in interface LayoutProps
public void isReferenceBaseline(boolean isReferenceBaseline)
isReferenceBaseline
in interface LayoutProps
public void useHeightAsBaseline(boolean useHeightAsBaseline)
useHeightAsBaseline
in interface LayoutProps
public void heightAuto()
heightAuto
in interface LayoutProps
public void widthAuto()
widthAuto
in interface LayoutProps
public void flexBasisAuto()
flexBasisAuto
in interface LayoutProps
public void setBorderWidth(YogaEdge edge, float borderWidth)
DebugLayoutNodeEditor
setBorderWidth
in interface LayoutProps
public void touchExpansionPx(YogaEdge edge, int touchExpansion)
public void foreground(Drawable foreground)
public void clickHandler(EventHandler<ClickEvent> clickHandler)
public Drawable getBackground()
public EventHandler<ClickEvent> getClickHandler()
public void longClickHandler(EventHandler<LongClickEvent> longClickHandler)
public EventHandler<LongClickEvent> getLongClickHandler()
public void focusChangeHandler(EventHandler<FocusChangedEvent> focusChangeHandler)
public EventHandler<FocusChangedEvent> getFocusChangeHandler()
public void touchHandler(EventHandler<TouchEvent> touchHandler)
public EventHandler<TouchEvent> getTouchHandler()
public void interceptTouchHandler(EventHandler<InterceptTouchEvent> interceptTouchHandler)
public EventHandler<InterceptTouchEvent> getInterceptTouchHandler()
public void focusable(boolean isFocusable)
public boolean getFocusable()
public void clickable(boolean isClickable)
public void enabled(boolean isEnabled)
public void selected(boolean isSelected)
public void accessibilityHeading(boolean isHeading)
public void visibleHeightRatio(float visibleHeightRatio)
public void visibleWidthRatio(float visibleWidthRatio)
public void visibleHandler(EventHandler<VisibleEvent> visibleHandler)
public void focusedHandler(EventHandler<FocusedVisibleEvent> focusedHandler)
public void unfocusedHandler(EventHandler<UnfocusedVisibleEvent> unfocusedHandler)
public void fullImpressionHandler(EventHandler<FullImpressionVisibleEvent> fullImpressionHandler)
public void invisibleHandler(EventHandler<InvisibleEvent> invisibleHandler)
public void visibilityChangedHandler(EventHandler<VisibilityChangedEvent> visibilityChangedHandler)
public void contentDescription(java.lang.CharSequence contentDescription)
public void viewTag(java.lang.Object viewTag)
public void viewTags(<any> viewTags)
public void transitionName(java.lang.String transitionName)
public void shadowElevationPx(float shadowElevation)
public void ambientShadowColor(int ambientShadowColor)
public void spotShadowColor(int spotShadowColor)
public void outlineProvider(ViewOutlineProvider outlineProvider)
public void clipToOutline(boolean clipToOutline)
public void clipChildren(boolean clipChildren)
public void accessibilityRole(java.lang.String role)
public void accessibilityRoleDescription(java.lang.CharSequence roleDescription)
public void dispatchPopulateAccessibilityEventHandler(EventHandler<DispatchPopulateAccessibilityEventEvent> dispatchPopulateAccessibilityEventHandler)
public void onInitializeAccessibilityEventHandler(EventHandler<OnInitializeAccessibilityEventEvent> onInitializeAccessibilityEventHandler)
public void onInitializeAccessibilityNodeInfoHandler(EventHandler<OnInitializeAccessibilityNodeInfoEvent> onInitializeAccessibilityNodeInfoHandler)
public void onPopulateAccessibilityEventHandler(EventHandler<OnPopulateAccessibilityEventEvent> onPopulateAccessibilityEventHandler)
public void onRequestSendAccessibilityEventHandler(EventHandler<OnRequestSendAccessibilityEventEvent> onRequestSendAccessibilityEventHandler)
public void performAccessibilityActionHandler(EventHandler<PerformAccessibilityActionEvent> performAccessibilityActionHandler)
public void sendAccessibilityEventHandler(EventHandler<SendAccessibilityEventEvent> sendAccessibilityEventHandler)
public void sendAccessibilityEventUncheckedHandler(EventHandler<SendAccessibilityEventUncheckedEvent> sendAccessibilityEventUncheckedHandler)
public void scale(float scale)
public void alpha(float alpha)
public void rotation(float rotation)
public void rotationX(float rotationX)
public void rotationY(float rotationY)
public void transitionKey(java.lang.String key, java.lang.String ownerKey)
public java.lang.String getTransitionKey()
public void transitionKeyType(Transition.TransitionKeyType type)
public void layerType(int type, Paint paint)
public Transition.TransitionKeyType getTransitionKeyType()
public NodeInfo getNullableNodeInfo()
public NodeInfo getOrCreateNodeInfo()
public void copyLayoutProps(LayoutProps layoutProps)
public int getDefStyleAttr()
public int getDefStyleRes()
public boolean isEquivalentTo(CommonProps o)
isEquivalentTo
in interface Equivalence<CommonProps>