Bonjour,
J'essaie de créer un RelativeLayout avec un scroll horizontal, mais à l’exécution tout "se marche dessus" ....
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 <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:fillViewport="true"> <!--IMPORTANT otherwise backgrnd img. will not fill the whole screen --> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> android:layout_height="250dp" <TextView android:id="@+id/textViewRejet" android:layout_width="match_parent" android:layout_height="75dp" android:text="Liste des numéros bloqués : " android:textAppearance="?android:attr/textAppearanceLarge" /> <EditText android:id="@+id/edittextViewRejet" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="top" android:inputType="textMultiLine" /> <Button android:id="@+id/buttonSMS" android:layout_width="fill_parent" android:layout_height="wrap_content" android:onClick="updatesms" android:text="Valider pour bloquer les SMS" /> <Button android:id="@+id/buttonTEL" android:layout_width="match_parent" android:layout_height="wrap_content" android:onClick="updatetel" android:text="Valider pour bloquer les Appels" /> <TextView android:id="@+id/textViewSMS" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Texte du SMS de rejet : " android:textAppearance="?android:attr/textAppearanceLarge" /> <EditText android:id="@+id/editTextSMS" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="top" android:inputType="textMultiLine" /> <ListView android:id="@+id/list" android:layout_width="match_parent" android:layout_height="wrap_content"></ListView> </RelativeLayout> </ScrollView>
Partager