djwa Posted December 26, 2010 Share Posted December 26, 2010 Bonsoir tout le monde, donc comme dit dans le sujet, je souhaiterai modifier dynamiquement ('c') pour que la couleur de fond des champs d'une liste, soit alterné, un bleu et un bleu clair. private void Affichage_données() { Cursor c = mDbHelper.recupererLesContacts(); startManagingCursor©; SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.liste_item, c,new String[]{"nom","prenom","numero"}, new int[]{R.id.textNom,R.id.textPrenom,R.id.textNumero}); setListAdapter(adapter); } Quelqu'un saurais comment faire? merci d'avance pour votre aide Link to comment Share on other sites More sharing options...
djwa Posted January 2, 2011 Author Share Posted January 2, 2011 Aucune idée? Link to comment Share on other sites More sharing options...
Profete162 Posted January 2, 2011 Share Posted January 2, 2011 http://tinyurl.com/2bqkfdo Link to comment Share on other sites More sharing options...
djwa Posted January 3, 2011 Author Share Posted January 3, 2011 Merci pour ton aide :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.