|
14 | 14 | android:fitsSystemWindows="true" |
15 | 15 | tools:context="presentation.activities.ListFileActivity"> |
16 | 16 |
|
17 | | - <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
18 | | - android:orientation="vertical" android:layout_width="match_parent" |
| 17 | + <LinearLayout |
| 18 | + android:orientation="vertical" |
| 19 | + android:layout_width="match_parent" |
19 | 20 | android:layout_height="match_parent" |
20 | | - app:layout_behavior="@string/appbar_scrolling_view_behavior"> |
| 21 | + app:layout_behavior="@string/appbar_scrolling_view_behavior" |
| 22 | + android:padding="10dp"> |
21 | 23 |
|
22 | | - <EditText |
| 24 | + <android.support.design.widget.TextInputLayout |
23 | 25 | android:layout_width="match_parent" |
24 | | - android:layout_height="wrap_content" |
25 | | - android:id="@+id/AddServer_etName" |
26 | | - android:hint="Name" |
27 | | - app:binding="@{model.name}" /> |
| 26 | + android:layout_height="wrap_content"> |
| 27 | + |
| 28 | + <EditText |
| 29 | + android:layout_width="match_parent" |
| 30 | + android:layout_height="wrap_content" |
| 31 | + android:id="@+id/AddServer_etName" |
| 32 | + android:hint="@string/activity_edit_server_name" |
| 33 | + app:binding="@{model.name}" /> |
| 34 | + |
| 35 | + </android.support.design.widget.TextInputLayout> |
28 | 36 |
|
29 | 37 | <LinearLayout |
30 | 38 | android:orientation="horizontal" |
31 | 39 | android:layout_width="match_parent" |
32 | 40 | android:layout_height="wrap_content" |
33 | 41 | android:weightSum="1"> |
34 | 42 |
|
35 | | - <EditText |
36 | | - android:layout_width="wrap_content" |
| 43 | + <android.support.design.widget.TextInputLayout |
| 44 | + android:layout_width="0dp" |
37 | 45 | android:layout_height="wrap_content" |
38 | | - android:id="@+id/AddServer_etHost" |
39 | | - android:hint="Hostname" |
40 | | - android:layout_weight="1" |
41 | | - app:binding="@{model.host}" /> |
| 46 | + android:layout_weight="1"> |
42 | 47 |
|
43 | | - <EditText |
| 48 | + <EditText |
| 49 | + android:layout_width="match_parent" |
| 50 | + android:layout_height="wrap_content" |
| 51 | + android:id="@+id/AddServer_etHost" |
| 52 | + android:hint="@string/activity_edit_server_hostname" |
| 53 | + app:binding="@{model.host}" /> |
| 54 | + |
| 55 | + </android.support.design.widget.TextInputLayout> |
| 56 | + |
| 57 | + <android.support.design.widget.TextInputLayout |
44 | 58 | android:layout_width="60dp" |
45 | | - android:layout_height="wrap_content" |
46 | | - android:inputType="number" |
47 | | - android:ems="10" |
48 | | - android:id="@+id/AddServer_etPort" |
49 | | - android:hint="Port" |
50 | | - android:layout_gravity="center_horizontal" |
51 | | - app:binding="@{model.port}" /> |
| 59 | + android:layout_height="wrap_content"> |
| 60 | + |
| 61 | + <EditText |
| 62 | + android:layout_width="match_parent" |
| 63 | + android:layout_height="wrap_content" |
| 64 | + android:inputType="number" |
| 65 | + android:ems="10" |
| 66 | + android:id="@+id/AddServer_etPort" |
| 67 | + android:hint="@string/activity_edit_server_port" |
| 68 | + android:layout_gravity="center_horizontal" |
| 69 | + app:binding="@{model.port}" /> |
| 70 | + |
| 71 | + </android.support.design.widget.TextInputLayout> |
52 | 72 |
|
53 | 73 | </LinearLayout> |
54 | 74 |
|
55 | 75 | <Switch |
56 | 76 | android:layout_width="wrap_content" |
57 | 77 | android:layout_height="wrap_content" |
58 | | - android:text="Anonymous connexion" |
| 78 | + android:text="@string/activity_edit_server_is_anonymous" |
59 | 79 | android:id="@+id/AddServer_swAnonymous" |
60 | 80 | android:layout_gravity="center_horizontal" |
61 | | - app:binding="@{model.isAnonymous}"/> |
| 81 | + app:binding="@{model.isAnonymous}" |
| 82 | + android:paddingTop="15dp" /> |
62 | 83 |
|
63 | | - <EditText |
| 84 | + <android.support.design.widget.TextInputLayout |
64 | 85 | android:layout_width="match_parent" |
65 | | - android:layout_height="wrap_content" |
66 | | - android:id="@+id/AddServer_etLogin" |
67 | | - android:hint="Login" |
68 | | - app:binding="@{model.login}" /> |
| 86 | + android:layout_height="wrap_content"> |
| 87 | + |
| 88 | + <EditText |
| 89 | + android:layout_width="match_parent" |
| 90 | + android:layout_height="wrap_content" |
| 91 | + android:id="@+id/AddServer_etLogin" |
| 92 | + android:hint="@string/activity_edit_server_login" |
| 93 | + app:binding="@{model.login}" /> |
| 94 | + |
| 95 | + </android.support.design.widget.TextInputLayout> |
69 | 96 |
|
70 | | - <EditText |
| 97 | + <android.support.design.widget.TextInputLayout |
71 | 98 | android:layout_width="match_parent" |
72 | | - android:layout_height="wrap_content" |
73 | | - android:inputType="textPassword" |
74 | | - android:ems="10" |
75 | | - android:id="@+id/AddServer_etPassword" |
76 | | - android:hint="Password" |
77 | | - app:binding="@{model.password}" /> |
| 99 | + android:layout_height="wrap_content"> |
| 100 | + |
| 101 | + <EditText |
| 102 | + android:layout_width="match_parent" |
| 103 | + android:layout_height="wrap_content" |
| 104 | + android:inputType="textPassword" |
| 105 | + android:ems="10" |
| 106 | + android:id="@+id/AddServer_etPassword" |
| 107 | + android:hint="@string/activity_edit_server_password" |
| 108 | + app:binding="@{model.password}" /> |
| 109 | + |
| 110 | + </android.support.design.widget.TextInputLayout> |
78 | 111 |
|
79 | 112 | </LinearLayout> |
80 | 113 |
|
81 | 114 | <android.support.design.widget.AppBarLayout |
82 | 115 | android:layout_width="match_parent" |
83 | | - android:layout_height="wrap_content" |
84 | | - android:theme="@style/AppTheme.AppBarOverlay"> |
| 116 | + android:layout_height="wrap_content"> |
85 | 117 |
|
86 | 118 | <android.support.v7.widget.Toolbar |
87 | 119 | android:layout_width="match_parent" |
88 | 120 | android:layout_height="?attr/actionBarSize" |
89 | | - android:background="?attr/colorPrimary" |
90 | | - app:popupTheme="@style/AppTheme.PopupOverlay"> |
| 121 | + android:background="?attr/colorPrimary"> |
91 | 122 |
|
92 | 123 | <ImageView |
93 | 124 | android:layout_width="wrap_content" |
|
0 commit comments