Bonjour,

Je souhaiterais avoir ce résultat dans la listview:


TEXT1 TEXT2 IMG1 IMG2 IMG3 IMG4
IMG5 IMG6 IMG7


Les TextView seront alignés sur chaque ligne, de même pour les images.

Pour information, j'ajoute dynamiquement le nombre d'ImageView qu'il y a d'images.




Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
 
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/monlayout"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/menu_boutton_list"
    android:orientation="vertical"
    android:paddingLeft="3dp" >
<LinearLayout android:id="@+id/mylot" android:layout_width="fill_parent"
    android:layout_height="wrap_content" android:layout_gravity="center" android:orientation="vertical">
        <TextView
        android:id="@+id/station"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
      android:text="AZERTY"/>
 
    <TextView
        android:id="@+id/distance"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"  android:gravity="right"
        android:text="OP"/>
 
 
 
</LinearLayout>
 
<LinearLayout android:id="@+id/mylot2" android:layout_width="fill_parent"
    android:layout_height="wrap_content" android:gravity="right">
 
 
 
</LinearLayout>
<LinearLayout android:id="@+id/mylot3" android:layout_width="fill_parent"
    android:layout_height="wrap_content" android:gravity="right">
 
 
 
</LinearLayout>
    <!-- <TableLayout -->
    <!-- android:id="@+id/TableLayout01" -->
    <!-- android:layout_width="wrap_content" -->
    <!-- android:layout_height="wrap_content" -->
    <!-- android:stretchColumns="0" > -->
    <!-- </TableLayout> -->
 
</LinearLayout>

Comment faire cela?

Merci.