Bonjour
j'essaie de modifier l'affichage de ma listview.
J'ai créé un fichier listitem.xml
et dans mon activité je crée la liste ainsi :<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dp"
android:textSize="12sp">
</TextView>
là tout est ok ca marche comme normal mais si j'essaie de passer par mon fichier xml ca plante je dois surement oublier de le déclarer mais où dois je le faire?setListAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1, matable));
Eclypse me dit "listitem cannot be resolved or is not a field"setListAdapter(new ArrayAdapter<String>(this,android.R.layout.listitem, matable));
est ce un bugg ou ais je encore oublié quelquechose?
Partager