Commit cf7dd450030559fc35a95647499aa92c9d0a6bfa

Authored by JLo'w
1 parent 8cd8911a

Rendre les boutons non focusables #doubleclic

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