Component Alignment
Entries
TOP_CENTER
Link copied to clipboard
TOP_CENTER(withinFn, { other, target ->
other.topCenter.withRelativeX(-target.width / 2)
}, aroundFn, { other, target ->
other.topCenter.withRelativeY(-target.height)
.withRelativeX(-target.width / 2)
})
Content copied to clipboard
RIGHT_CENTER
Link copied to clipboard
RIGHT_CENTER(withinFn, { other, target ->
other.rightCenter.withRelativeX(-target.width)
.withRelativeY(-target.height / 2)
}, aroundFn, { other, target ->
other.rightCenter.withRelativeY(-target.height / 2)
})
Content copied to clipboard
BOTTOM_RIGHT
Link copied to clipboard
BOTTOM_RIGHT(withinFn, { other, target ->
other.bottomRight.withRelativeX(-target.width)
.withRelativeY(-target.height)
}, aroundFn, { other, _ ->
other.bottomRight
})
Content copied to clipboard
BOTTOM_CENTER
Link copied to clipboard
BOTTOM_CENTER(withinFn, { other, target ->
other.bottomCenter.withRelativeY(-target.height)
.withRelativeX(-target.width / 2)
}, aroundFn, { other, target ->
other.bottomCenter
.withRelativeX(-target.width / 2)
})
Content copied to clipboard
BOTTOM_LEFT
Link copied to clipboard
BOTTOM_LEFT(withinFn, { other, target ->
other.bottomLeft.withRelativeY(-target.height)
}, aroundFn, { other, target ->
other.bottomLeft.withRelativeX(-target.width)
})
Content copied to clipboard
LEFT_CENTER
Link copied to clipboard
LEFT_CENTER(withinFn, { other, target ->
other.leftCenter.withRelativeY(-target.height / 2)
}, aroundFn, { other, target ->
other.leftCenter.withRelativeX(-target.width)
.withRelativeY(-target.height / 2)
})
Content copied to clipboard
Functions
alignAround
Link copied to clipboard
alignWithin
Link copied to clipboard
compareTo
Link copied to clipboard
Properties
Sources
(source)
Link copied to clipboard