blob: d8e10bc05c40e2cbef06a3d67271c0975bea1989 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".LoginActivity">
<!-- Login progress -->
<LinearLayout
android:id="@+id/containerLoginStatus"
android:visibility="invisible"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center_horizontal"
android:orientation="vertical">
<ProgressBar style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"/>
<TextView
android:id="@+id/loginStatus"
android:textAppearance="?android:attr/textAppearanceMedium"
android:fontFamily="sans-serif-light"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:text="---" />
<Button
android:id="@+id/buttonCancel"
android:text="Cancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
<!-- Login form -->
<ScrollView
android:id="@+id/containerLoginForm"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="invisible"
android:padding="12dp">
<RelativeLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/inputUsername"
android:singleLine="true"
android:maxLines="1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textNoSuggestions"
android:hint="Username" />
<EditText
android:id="@+id/inputPassword"
android:layout_below="@id/inputUsername"
android:layout_marginBottom="12dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:maxLines="1"
android:fontFamily="sans-serif"
android:hint="Password"
android:inputType="textPassword" />
<EditText
android:id="@+id/inputPort"
android:layout_below="@id/inputPassword"
android:layout_alignParentRight="true"
android:layout_width="120dp"
android:layout_height="wrap_content"
android:singleLine="true"
android:maxLines="1"
android:hint="Port"
android:inputType="number"/>
<EditText
android:id="@+id/inputHostname"
android:layout_below="@id/inputPassword"
android:layout_toLeftOf="@id/inputPort"
android:layout_alignParentLeft="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:maxLines="1"
android:hint="Server address"
android:inputType=""/>
<CheckBox
android:id="@+id/checkUseTls"
android:layout_below="@id/inputHostname"
android:layout_marginBottom="12dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Use secured connection (SSL/TLS)"
/>
<Button android:id="@+id/buttonConnect"
android:layout_below="@id/checkUseTls"
android:layout_alignParentRight="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Connect"
android:paddingLeft="32dp"
android:paddingRight="32dp" />
</RelativeLayout>
</ScrollView>
</merge>
|