dimsuz
06/10/2021, 3:31 PMImage
which has fillMaxSize()
and contentScale = FillBounds
, but the painter is still drawn in center of the image, why is that? It seems that contentScale is completely ignored (example in the thread)dimsuz
06/10/2021, 3:32 PMBox {
Image(
modifier = Modifier.fillMaxWidth().height(100.dp),
painter = painterResource(id = R.drawable.img_toolbar_background_360x76),
contentScale = ContentScale.FillBounds,
contentDescription = null
)
}
Nader Jawad
06/10/2021, 3:39 PMdimsuz
06/10/2021, 3:40 PMNader Jawad
06/10/2021, 3:41 PMdimsuz
06/10/2021, 3:43 PM