Commit cf7dd450030559fc35a95647499aa92c9d0a6bfa
1 parent
8cd8911a
Rendre les boutons non focusables #doubleclic
Showing
4 changed files
with
8 additions
and
16 deletions
Show diff stats
PremiereActivite/app/src/main/res/layout-v23/layout_commande.xml
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | android:layout_width="wrap_content" | 11 | android:layout_width="wrap_content" |
12 | android:layout_height="wrap_content" | 12 | android:layout_height="wrap_content" |
13 | android:inputType="number" | 13 | android:inputType="number" |
14 | - android:ems="15" | 14 | + android:ems="10" |
15 | android:id="@+id/commande_quantite" | 15 | android:id="@+id/commande_quantite" |
16 | android:editable="true" | 16 | android:editable="true" |
17 | android:elegantTextHeight="true" | 17 | android:elegantTextHeight="true" |
@@ -21,12 +21,11 @@ | @@ -21,12 +21,11 @@ | ||
21 | android:hint="@string/quant" | 21 | android:hint="@string/quant" |
22 | android:textAlignment="center" | 22 | android:textAlignment="center" |
23 | android:layout_gravity="center_horizontal" | 23 | android:layout_gravity="center_horizontal" |
24 | - android:layout_marginTop="30dp" | 24 | + android:layout_marginTop="20dp" |
25 | android:height="150dp" | 25 | android:height="150dp" |
26 | android:minHeight="50dp" | 26 | android:minHeight="50dp" |
27 | android:maxHeight="500dp" | 27 | android:maxHeight="500dp" |
28 | - android:minWidth="120dp" | ||
29 | - android:textIsSelectable="true" /> | 28 | + android:minWidth="120dp" /> |
30 | 29 | ||
31 | <EditText | 30 | <EditText |
32 | android:layout_width="wrap_content" | 31 | android:layout_width="wrap_content" |
@@ -59,8 +58,6 @@ | @@ -59,8 +58,6 @@ | ||
59 | android:height="80dp" | 58 | android:height="80dp" |
60 | android:onClick="valideCommande" | 59 | android:onClick="valideCommande" |
61 | android:nestedScrollingEnabled="false" | 60 | android:nestedScrollingEnabled="false" |
62 | - android:enabled="true" | ||
63 | - android:focusable="true" | ||
64 | - android:focusableInTouchMode="true" /> | 61 | + android:enabled="true" /> |
65 | 62 | ||
66 | </LinearLayout> | 63 | </LinearLayout> |
67 | \ No newline at end of file | 64 | \ No newline at end of file |
PremiereActivite/app/src/main/res/layout/layout_connection.xml
@@ -48,8 +48,6 @@ | @@ -48,8 +48,6 @@ | ||
48 | android:layout_marginTop="40dp" | 48 | android:layout_marginTop="40dp" |
49 | android:clickable="true" | 49 | android:clickable="true" |
50 | android:enabled="true" | 50 | android:enabled="true" |
51 | - android:focusable="true" | ||
52 | - android:focusableInTouchMode="true" | ||
53 | android:height="50dp" | 51 | android:height="50dp" |
54 | android:hint="@string/validate" | 52 | android:hint="@string/validate" |
55 | android:minHeight="40dp" | 53 | android:minHeight="40dp" |
PremiereActivite/app/src/main/res/layout/layout_creation.xml
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | android:layout_height="wrap_content" | 8 | android:layout_height="wrap_content" |
9 | android:inputType="numberDecimal" | 9 | android:inputType="numberDecimal" |
10 | android:ems="10" | 10 | android:ems="10" |
11 | - android:id="@+id/editText" | 11 | + android:id="@+id/creation_montant" |
12 | android:layout_gravity="center_horizontal" | 12 | android:layout_gravity="center_horizontal" |
13 | android:editable="true" | 13 | android:editable="true" |
14 | android:elegantTextHeight="true" | 14 | android:elegantTextHeight="true" |
@@ -27,16 +27,15 @@ | @@ -27,16 +27,15 @@ | ||
27 | android:layout_width="wrap_content" | 27 | android:layout_width="wrap_content" |
28 | android:layout_height="wrap_content" | 28 | android:layout_height="wrap_content" |
29 | android:text="@string/validate" | 29 | android:text="@string/validate" |
30 | - android:id="@+id/button3" | 30 | + android:id="@+id/creation_validation" |
31 | android:layout_gravity="center_horizontal" | 31 | android:layout_gravity="center_horizontal" |
32 | android:layout_marginTop="80dp" | 32 | android:layout_marginTop="80dp" |
33 | android:elegantTextHeight="true" | 33 | android:elegantTextHeight="true" |
34 | android:enabled="true" | 34 | android:enabled="true" |
35 | - android:focusable="true" | ||
36 | - android:focusableInTouchMode="true" | ||
37 | android:height="80dp" | 35 | android:height="80dp" |
38 | android:minHeight="80dp" | 36 | android:minHeight="80dp" |
39 | android:minWidth="150dp" | 37 | android:minWidth="150dp" |
40 | android:textAlignment="center" | 38 | android:textAlignment="center" |
41 | - android:width="200dp" /> | 39 | + android:width="200dp" |
40 | + android:onClick="valideCreationCompte" /> | ||
42 | </LinearLayout> | 41 | </LinearLayout> |
43 | \ No newline at end of file | 42 | \ No newline at end of file |
PremiereActivite/app/src/main/res/layout/layout_rechargement.xml
@@ -39,8 +39,6 @@ | @@ -39,8 +39,6 @@ | ||
39 | android:width="150dp" | 39 | android:width="150dp" |
40 | android:elegantTextHeight="true" | 40 | android:elegantTextHeight="true" |
41 | android:enabled="true" | 41 | android:enabled="true" |
42 | - android:focusable="true" | ||
43 | - android:focusableInTouchMode="true" | ||
44 | android:onClick="valideRechargement" | 42 | android:onClick="valideRechargement" |
45 | android:height="80dp" | 43 | android:height="80dp" |
46 | android:maxHeight="200dp" | 44 | android:maxHeight="200dp" |