Bonjour, J'aimerai divisé mon design en deux parties:
- à gauche, je dispose mes boutons(5 boutons)
- à droite, je veux remplacer les checkbox par 2 ListView pour y associer les items que l'utilisateur pourra selectionner d'une liste à l'autre.
voir cod ci-dessous
merci bien
Code xml : 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <GridLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:rowCount="6" android:columnCount="2"> <TextView android:text="Complexité" android:layout_gravity="fill" android:textSize="25dp" android:layout_row="0" android:layout_column="0" android:id="@+id/txtComplexite" android:textAlignment="center" /> <Button android:text="Très petit" android:layout_gravity="fill" android:layout_row="1" android:layout_column="0" android:id="@+id/btnTresPetit" android:textAlignment="center"/> <Button android:text="Petit" android:layout_gravity="fill" android:layout_row="2" android:layout_column="0" android:id="@+id/btnPetit" android:textAlignment="center"/> <Button android:text="Moyenne" android:layout_gravity="fill" android:layout_row="3" android:layout_column="0" android:id="@+id/btnMoyenne" android:textAlignment="center"/> <Button android:text="Gros" android:layout_gravity="fill" android:layout_row="4" android:layout_column="0" android:id="@+id/btnGros" android:textAlignment="center"/> <Button android:text="Tres gros" android:layout_row="5" android:layout_column="0" android:id="@+id/btnTresGros" android:textAlignment="center"/> <TextView android:text="Liste d'option" android:textSize="25dp" android:layout_row="1" android:layout_column="1" android:id="@+id/txtListeOption" android:textAlignment="center"/> <CheckBox android:text="Fruits" android:textSize="25dp" android:layout_gravity="fill" android:layout_row="2" android:layout_column="1" android:id="@+id/cbxFruits"/> <CheckBox android:text="Poissons" android:textSize="25dp" android:layout_gravity="fill" android:layout_row="3" android:layout_column="1" android:id="@+id/cbxPoissons"/> <CheckBox android:text="Legumes" android:textSize="25dp" android:layout_gravity="fill" android:layout_row="4" android:layout_column="1" android:id="@+id/cbxLegumes"/> </GridLayout> </LinearLayout>
Partager