Bonjour à tous.

je veux avoir une belle vue de mon application. mais toujours quand je change la taille de l'emulateur,le view change aussi.

ils me disent que je dois utiliser le RelativeLayout,mais je ne sais pas comment l'utiliser .

voilà un exemple de 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
 
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout 
xmlns:android="http://schemas.android.com/apk/res/android"
 android:orientation="vertical"
  android:layout_width="fill_parent"
   android:layout_height="fill_parent">
   <ScrollView android:id="@+id/ScrollView01"
   android:layout_width="fill_parent"
android:layout_height="350px"
>
    <TextView   
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" 
        android:id="@+id/monText" 
        android:textSize="20sp"
 
        />
        </ScrollView>
      <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/linearLayout1" android:gravity="bottom">
          <ImageButton android:src="@drawable/ss" android:layout_width="wrap_content" android:id="@+id/imageButton" android:layout_height="wrap_content"></ImageButton>
 
          <Button android:text="  Quitter  " android:id="@+id/cancel" android:layout_height="wrap_content" android:gravity="bottom" android:layout_width="wrap_content" android:enabled="true"></Button>
 
      <ToggleButton android:id="@+id/toggle1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textOff="Arreter"
android:textOn="  Repeter "/>
 
 
      </LinearLayout>
 
 
 
  </LinearLayout>
quelqu'un peut m'aider à changer cette vue,ou bien une règle en général pour que je puisse me débrouiller.

merci