StyleCompat

Backwards compatibility to allow Java code to define Styles used by Kotlin components

Usage:

new MyKotlinComponent(
prop1,
prop2,
StyleCompat.flexShrink(0f)
.marginDip(YogaEdge.ALL, 4f)
.build())

Functions

Link copied to clipboard
Link copied to clipboard
fun alignSelf(value: YogaAlign): JavaStyle
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun marginDip(yogaEdge: YogaEdge, value: Float): JavaStyle
Link copied to clipboard
fun marginPx(yogaEdge: YogaEdge, value: Int): JavaStyle
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun paddingDip(yogaEdge: YogaEdge, value: Float): JavaStyle
Link copied to clipboard
fun paddingPx(yogaEdge: YogaEdge, value: Int): JavaStyle
Link copied to clipboard
fun positionDip(yogaEdge: YogaEdge, value: Float): JavaStyle
Link copied to clipboard
fun positionPx(yogaEdge: YogaEdge, value: Int): JavaStyle
Link copied to clipboard
fun positionType(value: YogaPositionType): JavaStyle
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun transitionKey(context: ComponentContext, transitionKey: String?, transitionKeyType: Transition.TransitionKeyType = Transition.TransitionKeyType.LOCAL): JavaStyle
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard