morphine63 Posted February 11, 2013 Share Posted February 11, 2013 Bonjour je suis en pleine création d'application et je débute. J'ai une liste : <ListView android:id="@android:id/list" android:layout_width="match_parent" android:layout_height="180dp" android:layout_alignParentLeft="true" android:layout_below="@+id/Nom" android:layout_marginTop="24dp" > </ListView> et List<Voiture> voits= mDbHelper.getPresVoitures(1); ListView result = (ListView) findViewById(android.R.id.list); Vector<String> med = new Vector<String>(); for (Voiture cn : voits) { voit.add("Medoc: " + cn.getVoitnom()); } String[] listePermis = new String[voit.size()]; for(int i=0; i<voit.size(); i++){ listePermis[i] = (String)voit.get(i); } result.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, listePermis)); mDbHelper.close(); Et je souhaiterai afficher en dessous des nom des voitures leurs caractéristique dans un SubItem. MAis pour l'instant je n'affiche que les noms merci d'avance Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.