Skip to content

Instantly share code, notes, and snippets.

@navczydev
Last active October 8, 2021 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save navczydev/72c5fe44ff20ffbf2391779f3de1ff0a to your computer and use it in GitHub Desktop.
Save navczydev/72c5fe44ff20ffbf2391779f3de1ff0a to your computer and use it in GitHub Desktop.
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