Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Image(
painter = painterResource(R.drawable.post_1),
contentDescription = null, // decorative
contentScale = ContentScale.Crop,
modifier = Modifier
.height(100.dp)
.fillMaxWidth()
)
Image(
painter = painterResource(R.drawable.post_1),
contentDescription = stringResource(R.string.content_desc_post_header)
contentScale = ContentScale.Crop,
modifier = Modifier
.height(100.dp)
.fillMaxWidth()
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment