Bonjour
dans un DataBind j'ai un champs "logo" qui est le nom d'une image
je veux l'afficher dans un listview, avec le code ci-dessous, il ne s'affiche pas
(les autre infos s'affichent)
Cette image est stockée dans drawable
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 public void DataBind() { Cursor c = db.afficheListe(); startManagingCursor(c); SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.items, c, new String[] {"nom","description","logo"}, new int[]{R.id.nom,R.id.description,R.id.img} ); setListAdapter(adapter); }
Pouvez-vous m'indiquer l'erreur ?
Merci
Partager