Skip to content
🤔 Documentation issue? Report or edit



This is the API of version 1.0.0-beta02

Image is used to display Images. It’s similar to an ImageView in the classic Android View system.

Load Image

You can use painterResource to load an image from the resources

fun ImageResourceDemo() {
    val image: Painter = painterResource(id = R.drawable.composelogo)
    Image(painter = image,contentDescription = "")

See also:

Last update: March 11, 2021