i have a code:
Row(
modifier = Modifier
.fillMaxWidth()
.background(Color.Black)
.paint(
painter = painterResource(resource = Res.drawable.toolbar_background),
contentScale = ContentScale.FillWidth
)
) {
Column(
modifier = Modifier
.padding(start = 16.dp, top = 20.dp)
.statusBarsPadding()
.weight(weight = 1f)
) {
...
}
Row(
modifier = Modifier
.padding(end = 16.dp, top = 20.dp)
.statusBarsPadding(),
verticalAlignment = Alignment.CenterVertically
) {
...
}
}
I have a Row
that has .background()
and .paint()
set.
Inside .paint()
contains an image, on top of which, in fact, I will place the elements
The bottom line is that the size of my picture is always the same, regardless of the height of the content inside, but I want to make sure that the height of this Row and the picture, respectively, depends on the height of the content inside
ContentScale.FillHeight
. If the result is not as expected, include both the current and expected UI screenshots in your question.