0

I'm trying to dynamically show a LazyColumn based on a JSON filled with some data.

[{
  "title": "test",
  "description": "desc",
  "image": "R.drawable.example"
}]

The text parts are not that hard to show but I want to present the Images based on my drawable. For instance, if I would show the image "example.png" on my png, I would call R.drawable.example of atleast that what I've been trying to achieve. (This is just an example because I'm not certain on whats the best way to do this, it doesn't necessarily have to be using the filename on my JSON.

Does anyone have a tip on what's the best way to do this? Thanks

Bonhart
  • 31
  • 5

0 Answers0