Center alignment places the center of a composable...
# compose
c
Center alignment places the center of a composable in the center of its parent. How can align the bottom of a composable with the center of its parent instead? An example would be a location pin icon on a map - the bottom (point) of the pin marks the location, not the center of the pin
s
If you don't care about potentially going outside of bounds, you can do a combination of
Copy code
Modifier
.requiredHeight(0.dp)
.wrapContentHeight(Alignment.Bottom, unbounded = true)
Otherwise doing this in a custom layout would be straightforward too