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,71 +3,58 @@
3 android:orientation="vertical" android:layout_width="match_parent" 3 android:orientation="vertical" android:layout_width="match_parent"
4 android:layout_height="match_parent"> 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 <EditText 6 <EditText
19 android:layout_width="wrap_content" 7 android:layout_width="wrap_content"
20 android:layout_height="wrap_content" 8 android:layout_height="wrap_content"
21 - android:inputType="text"  
22 - android:ems="15"  
23 android:id="@+id/connection_username" 9 android:id="@+id/connection_username"
  10 + android:layout_gravity="center_horizontal"
24 android:editable="true" 11 android:editable="true"
25 - android:elegantTextHeight="true"  
26 android:enabled="true" 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 <EditText 23 <EditText
39 android:layout_width="wrap_content" 24 android:layout_width="wrap_content"
40 android:layout_height="wrap_content" 25 android:layout_height="wrap_content"
41 - android:inputType="textPassword"  
42 - android:ems="15"  
43 android:id="@+id/connection_password" 26 android:id="@+id/connection_password"
  27 + android:layout_gravity="center_horizontal"
  28 + android:hint="@string/password"
  29 + android:inputType="textPassword"
44 android:editable="true" 30 android:editable="true"
45 - android:elegantTextHeight="true"  
46 android:enabled="true" 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 <Button 42 <Button
59 android:layout_width="wrap_content" 43 android:layout_width="wrap_content"
60 android:layout_height="wrap_content" 44 android:layout_height="wrap_content"
61 android:text="@string/validate" 45 android:text="@string/validate"
62 - android:id="@+id/con_validation" 46 + android:id="@+id/connection_button"
63 android:layout_gravity="center_horizontal" 47 android:layout_gravity="center_horizontal"
64 android:layout_marginTop="40dp" 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 android:enabled="true" 50 android:enabled="true"
70 android:focusable="true" 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 </LinearLayout> 60 </LinearLayout>
74 \ No newline at end of file 61 \ No newline at end of file