Commit e11e96d01e290667e8615362ca51650c765e3d8d

Authored by JLo'w
1 parent 520cecde

Correction problème clavier android

PremiereActivite/app/src/main/res/layout/layout_connection.xml
... ... @@ -3,71 +3,58 @@
3 3 android:orientation="vertical" android:layout_width="match_parent"
4 4 android:layout_height="match_parent">
5 5  
6   - <TextView
7   - android:layout_width="wrap_content"
8   - android:layout_height="wrap_content"
9   - android:text="Bonjours, veuillez entrez les informations suivantes"
10   - android:id="@+id/mainText"
11   - android:inputType="none"
12   - android:textAlignment="center"
13   - android:textAppearance="@android:color/primary_text_light"
14   - android:textColor="@color/abc_input_method_navigation_guard"
15   - android:textSize="@dimen/abc_text_size_large_material"
16   - android:textStyle="bold" />
17   -
18 6 <EditText
19 7 android:layout_width="wrap_content"
20 8 android:layout_height="wrap_content"
21   - android:inputType="text"
22   - android:ems="15"
23 9 android:id="@+id/connection_username"
  10 + android:layout_gravity="center_horizontal"
24 11 android:editable="true"
25   - android:elegantTextHeight="true"
26 12 android:enabled="true"
27   - android:width="300dp"
28   - android:hint="@string/identifiant"
29   - android:textAlignment="center"
30   - android:layout_gravity="center_horizontal"
31   - android:layout_marginTop="30dp"
32   - android:height="150dp"
33   - android:minHeight="50dp"
34   - android:maxHeight="500dp"
35   - android:minWidth="120dp"
36   - android:textIsSelectable="true" />
  13 + android:focusable="true"
  14 + android:focusableInTouchMode="true"
  15 + android:inputType="text"
  16 + android:minHeight="80dp"
  17 + android:minWidth="250dp"
  18 + android:width="250dp"
  19 + android:hint="@string/user"
  20 + android:height="80dp"
  21 + android:textAlignment="center" />
37 22  
38 23 <EditText
39 24 android:layout_width="wrap_content"
40 25 android:layout_height="wrap_content"
41   - android:inputType="textPassword"
42   - android:ems="15"
43 26 android:id="@+id/connection_password"
  27 + android:layout_gravity="center_horizontal"
  28 + android:hint="@string/password"
  29 + android:inputType="textPassword"
44 30 android:editable="true"
45   - android:elegantTextHeight="true"
46 31 android:enabled="true"
47   - android:width="300dp"
48   - android:hint="@string/password"
49   - android:textAlignment="center"
50   - android:layout_gravity="center_horizontal"
51   - android:layout_marginTop="30dp"
52   - android:height="150dp"
53   - android:minHeight="50dp"
54   - android:maxHeight="500dp"
55   - android:minWidth="120dp"
56   - android:textIsSelectable="true" />
  32 + android:focusable="true"
  33 + android:focusableInTouchMode="true"
  34 + android:height="80dp"
  35 + android:minHeight="80dp"
  36 + android:minWidth="250dp"
  37 + android:password="true"
  38 + android:width="250dp"
  39 + android:layout_marginTop="40dp"
  40 + android:textAlignment="center" />
57 41  
58 42 <Button
59 43 android:layout_width="wrap_content"
60 44 android:layout_height="wrap_content"
61 45 android:text="@string/validate"
62   - android:id="@+id/con_validation"
  46 + android:id="@+id/connection_button"
63 47 android:layout_gravity="center_horizontal"
64 48 android:layout_marginTop="40dp"
65   - android:width="180dp"
66   - android:height="80dp"
67   - android:onClick="valideConnection"
68   - android:nestedScrollingEnabled="false"
  49 + android:clickable="true"
69 50 android:enabled="true"
70 51 android:focusable="true"
71   - android:focusableInTouchMode="true" />
72   -
  52 + android:focusableInTouchMode="true"
  53 + android:height="50dp"
  54 + android:hint="@string/validate"
  55 + android:minHeight="40dp"
  56 + android:minWidth="150dp"
  57 + android:onClick="valideConnection"
  58 + android:textAlignment="center"
  59 + android:width="150dp" />
73 60 </LinearLayout>
74 61 \ No newline at end of file
... ...