I’m trying to set a drawable in a list. My list doesn’t contain just an image.
I’m populating it from a list_item.xml with severals TextViews and one ImageView.
I don’t have any problem if my image is store in the Res android folder, but here I’m loading this image from a database.
Right now i’m using this king of method :
SimpleAdapter adapter = new SimpleAdapter(this.getBaseContext(), list,
R.layout.xml_leaderboard_item, keys, views);
Is there a way to add this drawable/bitmap in my list ? or maybe put that image in the Res folder programmatically so I can use it ?
I was finally able to do what I wanted. Here is the result :
I’m downloading these pictures asynchronously from my database. I was having trouble adding it to a ListView…
Here’s my code for those who might be interested.
The DownloadCache class :
Hope this help.