class Dimension


Represents a dimension (width or height) of a constrained widget

Summary

Nested types

Public functions

java-static Dimension!
Fixed(value: Any!)

This function is deprecated.

Use createFixed instead

java-static Dimension!
Fixed(value: Int)

This function is deprecated.

Use createFixed instead

java-static Dimension!

This function is deprecated.

Use createParent instead

java-static Dimension!
Percent(key: Any!, value: Float)

This function is deprecated.

Use createPercent instead

java-static Dimension!
Ratio(ratio: String!)

This function is deprecated.

Use createRatio instead

java-static Dimension!

This function is deprecated.

Use createSpread instead

java-static Dimension!
Suggested(startValue: Any!)

This function is deprecated.

Use createSuggested instead

java-static Dimension!
Suggested(value: Int)

This function is deprecated.

Use createSuggested instead

java-static Dimension!

This function is deprecated.

Use createWrap instead

Unit
apply(state: State!, constraintWidget: ConstraintWidget!, orientation: Int)

Apply the dimension to the given constraint widget

java-static Dimension!
createFixed(value: Any!)
java-static Dimension!
createFixed(value: Int)
java-static Dimension!
java-static Dimension!
createPercent(key: Any!, value: Float)
java-static Dimension!
java-static Dimension!
java-static Dimension!
createSuggested(startValue: Any!)
java-static Dimension!
java-static Dimension!
Boolean

Returns true if the dimension is a fixed dimension of the same given value

Dimension!
fixed(value: Any!)
Dimension!
fixed(value: Int)
Dimension!
max(value: Any!)
Dimension!
max(value: Int)
Dimension!
min(value: Any!)
Dimension!
min(value: Int)
Dimension!
percent(key: Any!, value: Float)
Dimension!
ratio(ratio: String!)
Dimension!
suggested(value: Any!)
Dimension!
suggested(value: Int)

Constants

FIXED_DIMENSION

Added in 1.1.1
const val FIXED_DIMENSIONAny!

PARENT_DIMENSION

Added in 1.1.1
const val PARENT_DIMENSIONAny!

PERCENT_DIMENSION

Added in 1.1.1
const val PERCENT_DIMENSIONAny!

RATIO_DIMENSION

Added in 1.1.1
const val RATIO_DIMENSIONAny!

SPREAD_DIMENSION

Added in 1.1.1
const val SPREAD_DIMENSIONAny!

WRAP_DIMENSION

Added in 1.1.1
const val WRAP_DIMENSIONAny!

Public functions

Fixed

Added in 1.1.1
Deprecated in 1.1.1
java-static fun Fixed(value: Any!): Dimension!

Fixed

Added in 1.1.1
Deprecated in 1.1.1
java-static fun Fixed(value: Int): Dimension!

Parent

Added in 1.1.1
Deprecated in 1.1.1
java-static fun Parent(): Dimension!

Percent

Added in 1.1.1
Deprecated in 1.1.1
java-static fun Percent(key: Any!, value: Float): Dimension!

Ratio

Added in 1.1.1
Deprecated in 1.1.1
java-static fun Ratio(ratio: String!): Dimension!

Spread

Added in 1.1.1
Deprecated in 1.1.1
java-static fun Spread(): Dimension!

Suggested

Added in 1.1.1
Deprecated in 1.1.1
java-static fun Suggested(startValue: Any!): Dimension!

Suggested

Added in 1.1.1
Deprecated in 1.1.1
java-static fun Suggested(value: Int): Dimension!

Wrap

Added in 1.1.1
Deprecated in 1.1.1
java-static fun Wrap(): Dimension!

apply

Added in 1.1.1
fun apply(state: State!, constraintWidget: ConstraintWidget!, orientation: Int): Unit

Apply the dimension to the given constraint widget

createFixed

Added in 1.1.1
java-static fun createFixed(value: Any!): Dimension!

createFixed

Added in 1.1.1
java-static fun createFixed(value: Int): Dimension!

createParent

Added in 1.1.1
java-static fun createParent(): Dimension!

createPercent

Added in 1.1.1
java-static fun createPercent(key: Any!, value: Float): Dimension!

createRatio

Added in 1.1.1
java-static fun createRatio(ratio: String!): Dimension!

createSpread

Added in 1.1.1
java-static fun createSpread(): Dimension!

createSuggested

Added in 1.1.1
java-static fun createSuggested(startValue: Any!): Dimension!

createSuggested

Added in 1.1.1
java-static fun createSuggested(value: Int): Dimension!

createWrap

Added in 1.1.1
java-static fun createWrap(): Dimension!

equalsFixedValue

Added in 1.1.1
fun equalsFixedValue(value: Int): Boolean

Returns true if the dimension is a fixed dimension of the same given value

fixed

Added in 1.1.1
fun fixed(value: Any!): Dimension!

fixed

Added in 1.1.1
fun fixed(value: Int): Dimension!

max

Added in 1.1.1
fun max(value: Any!): Dimension!

max

Added in 1.1.1
fun max(value: Int): Dimension!

min

Added in 1.1.1
fun min(value: Any!): Dimension!

min

Added in 1.1.1
fun min(value: Int): Dimension!

percent

Added in 1.1.1
fun percent(key: Any!, value: Float): Dimension!

ratio

Added in 1.1.1
fun ratio(ratio: String!): Dimension!

suggested

Added in 1.1.1
fun suggested(value: Any!): Dimension!

suggested

Added in 1.1.1
fun suggested(value: Int): Dimension!