Skip to content
Snippets Groups Projects
Unverified Commit 4769b2f8 authored by Steyn Geldenhuys's avatar Steyn Geldenhuys Committed by GitHub
Browse files

Update README.md with image resource path (#510)

The loading "images from resources" specifies that the image is placed in `resources/images` however the loading of the resource does not reflect this path.
parent dc428d3a
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ import androidx.compose.ui.res.imageResource
fun main() {
Window {
Image(
bitmap = imageResource("sample.png"), // ImageBitmap
bitmap = imageResource("images/sample.png"), // ImageBitmap
contentDescription = "Sample",
modifier = Modifier.fillMaxSize()
)
......@@ -391,4 +391,4 @@ fun main() {
}
```
![Loading XML vector images](loading_xml_vector_images.png)
\ No newline at end of file
![Loading XML vector images](loading_xml_vector_images.png)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment