J'expérimente avec la plate-forme Android, et je commence à l'aimer, mais pour l'instant je suis coincé, à ce problème de curseur/liste d'adaptateur. Le fait est que je demande une fonction, retournant un objet de données, avec plusieurs propriétés que je voudrais mapper à différents TextView.ListAdapter/Cursor, Android. Problème de mise en page personnalisée
Mon list_item.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:id="@+id/schedule_item_text"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dp"
android:textSize="16sp" />
<TableRow android:layout_width="fill_parent" android:layout_height="fill_parent" android:stretchColumns="1">
<TableRow>
<TextView android:layout_column="1" android:text="teacher" android:padding="3dip"/>
<TextView android:gravity="right" android:text="Test" android:padding="3dip" />
</TableRow>
</TableRow>
</LinearLayout>
Donc ce que je voudrais faire est: Mapper une propriété d'un tableau d'objets à plusieurs champs dans le fichier. Comment? Aidez-moi?