dimsuz
12/22/2021, 1:43 PMBox {
// 500dp intrinsic width image
Image(
painter = painterResource(R.drawable_image_500x56),
contentScale = FillHeight,
alignment = TopStart)
Text("hello")
}
Currently this box has size 500.dp
due to `Image`'s intrinsic width. But I want this box to have width of the Text
and for Image
to be painted and horizontally clipped on the right. Is this possible with default layouts?maciejciemiega
12/22/2021, 4:01 PMBox(modifier = modifier.height(IntrinsicSize.Min)) {
dimsuz
12/22/2021, 4:06 PM