dialog_new_server.xml 4.22 KB
Newer Older
1
<?xml version="1.0" encoding="utf-8"?>
2
3
4
5
6
7
8
9
10
<ScrollView
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:layout_width="match_parent"
        android:paddingLeft="@dimen/dialog_horizontal_margin"
        android:paddingRight="@dimen/dialog_horizontal_margin"
        android:paddingTop="@dimen/dialog_vertical_margin"
        android:paddingBottom="@dimen/dialog_vertical_margin"
        android:layout_height="match_parent">
11

12
13
14
15
16
17
18
19
    <LinearLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:paddingLeft="@dimen/dialog_horizontal_margin"
            android:paddingRight="@dimen/dialog_horizontal_margin"
            android:paddingTop="@dimen/dialog_vertical_margin"
            android:paddingBottom="@dimen/dialog_vertical_margin"
            android:layout_height="wrap_content">
20

21
        <Spinner
22
                android:layout_width="match_parent"
23
24
25
                android:id="@+id/serverType"
                android:layout_marginBottom="12dp"
                android:layout_height="wrap_content"/>
26

27
        <com.google.android.material.textfield.TextInputLayout
28
29
                android:layout_width="match_parent"
                android:id="@+id/serverNameWrap"
30
31
32
33
                app:errorEnabled="true"
                android:hint="@string/dialog_newserver_name"
                android:textColorHint="?attr/foregroundElementColor"
                android:layout_marginTop="8dp"
34
35
36
                app:openKeyboardOnFocus="true"
                android:layout_height="wrap_content">

37
            <com.google.android.material.textfield.TextInputEditText
38
                    android:layout_width="match_parent"
39
40
                    android:hint="@string/dialog_newserver_name_hint"
                    android:id="@+id/serverName"
41
                    android:inputType="text"
42
                    android:imeOptions="actionNext"
43
44
                    android:maxLines="1"
                    android:nextFocusDown="@id/secondaryServer"
45
46
                    android:layout_height="wrap_content"/>
        </com.google.android.material.textfield.TextInputLayout>
47

48
        <com.google.android.material.textfield.TextInputLayout
49
                android:layout_width="match_parent"
50
                android:id="@+id/primaryServerWrap"
51
52
53
54
                app:errorEnabled="true"
                android:hint="@string/dialog_newserver_primaryserver"
                android:textColorHint="?attr/foregroundElementColor"
                android:layout_marginTop="8dp"
55
56
                app:openKeyboardOnFocus="true"
                android:layout_height="wrap_content">
57

58
            <com.google.android.material.textfield.TextInputEditText
59
                    android:layout_width="match_parent"
60
61
                    android:hint="@string/dialog_newserver_name_hint"
                    android:id="@+id/primaryServer"
62
                    android:inputType="text"
63
                    android:imeOptions="actionNext"
64
65
                    android:maxLines="1"
                    android:nextFocusDown="@id/secondaryServer"
66
67
                    android:layout_height="wrap_content"/>
        </com.google.android.material.textfield.TextInputLayout>
68

69
        <com.google.android.material.textfield.TextInputLayout
70
                android:layout_width="match_parent"
71
                android:id="@+id/secondaryServerWrap"
72
73
74
75
76
                app:errorEnabled="true"
                android:hint="@string/dialog_newserver_secondaryserver"
                android:textColorHint="?attr/foregroundElementColor"
                android:layout_marginTop="8dp"
                app:openKeyboardOnFocus="true"
77
78
                android:layout_height="wrap_content">

79
            <com.google.android.material.textfield.TextInputEditText
80
                    android:layout_width="match_parent"
81
                    android:id="@+id/secondaryServer"
82
                    android:inputType="text"
83
                    android:imeOptions="actionNext"
84
                    android:maxLines="1"
85
86
87
                    android:nextFocusDown="@id/primaryServer"
                    android:layout_height="wrap_content"/>
        </com.google.android.material.textfield.TextInputLayout>
88
89
    </LinearLayout>
</ScrollView>