Bonjour je reviens vers vous cette fois ci pour un problème d'affichage.
je voudrais faire un affichage comme cette image a l'exception près que les carré sont des gros boutons.


http://www.google.fr/imgres?um=1&hl=...r:84,s:0,i:336


Et je souhaiterais que cela soit adaptable à toute sorte de taille d'écran.
je n'ai pas trouver j'ai essayer avec un table layout mais le rendu n'est pas terrible, les marge ne sont pas confondues, les bouton sont de forme rectangulaire et non carrée.

J’espère que vous pourrez m'aider

Voici mon code
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/scroll"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" >
 
    <LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical" >
 
        <ImageView
            android:id="@+id/picture"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/normal_padding"
            android:src="@drawable/picture2" />
 
        <LinearLayout
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_gravity="center_horizontal"
            android:orientation="vertical" >
 
            <TableLayout
                xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_gravity="center_horizontal"
                android:orientation="vertical"
                android:layout_marginTop="300dp" >
 
                <TableRow
                    android:id="@+id/TableRow1"
                    android:layout_width="wrap_content"
                    android:layout_height="200dp"
                    android:gravity="center_horizontal|center_vertical|clip_horizontal" >
 
                    <Button
                        android:id="@+id/rechercheClient"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="@string/rechercheClient" />
 
                    <Button
                        android:id="@+id/rechercheArticle"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="@string/rechercheArticle" />
                </TableRow>
 
                <TableRow android:gravity="center_horizontal|center_vertical|clip_horizontal" >
 
                    <Button
                        android:id="@+id/autre"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="0dp"
                        android:text="...?" />
 
                    <Button
                        android:id="@+id/retour"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="@string/retour" />
                </TableRow>
            </TableLayout>
        </LinearLayout>
    </LinearLayout>
 
</ScrollView>
Cordialement.