Bonsoir,

J'essaye depuis quelques heures de positionner 4 boutons, avec 1 textView sous chaque bouton.
J'ai réussi à faire ceci :



Uploaded with ImageShack.us

J'ai essayé de le centrer et de les placer en carré, mais le problème, c'est qu'il coupe le texte "Enseignement" en ne laissant que "Ens", et m'écrase son îcone. De plus, le bouton "Documentation" n'est pas centré. Comment faire ?

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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 
	android:id="@+id/relativeLayout1" 
	android:layout_width="fill_parent" 
	android:layout_height="fill_parent"
	android:background="@color/backgroundColor" 
	xmlns:android="http://schemas.android.com/apk/res/android">
 
	<include
        layout="@layout/barreprinc"
        android:id="@+id/barreprinc"
        android:layout_alignParentTop="true" 
	/>
	<LinearLayout 
		android:layout_centerInParent="true"
		android:gravity="center_horizontal"
		android:layout_height="wrap_content"
		android:layout_width="fill_parent">
		<include
			layout="@layout/accueil"
		    android:id="@+id/milieu"
		/>
	</LinearLayout>
    <SlidingDrawer 
    	android:layout_width="fill_parent" 
    	android:id="@+id/slidingDrawer1" 
    	android:layout_height="250dip" 
    	android:handle="@+id/handle" 
    	android:content="@+id/content" 
    	android:layout_alignParentBottom="true"
    	>
        <Button 
        	android:layout_width="fill_parent" 
        	android:text="@string/txtButtonNameSliders" 
        	android:layout_height="wrap_content" 
        	android:id="@+id/handle"
        	android:background="@+drawable/buttonactu">
        </Button>
  		<LinearLayout 
	  		android:id="@+id/content" 
	  		android:layout_width="fill_parent" 
	  		android:layout_height="fill_parent"
	  		android:background="@color/backgroundActu"
  		/>
    </SlidingDrawer>
 
</RelativeLayout>