1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2016 The Android Open Source Project
4
5     Licensed under the Apache License, Version 2.0 (the "License");
6     you may not use this file except in compliance with the License.
7     You may obtain a copy of the License at
8
9          http://www.apache.org/licenses/LICENSE-2.0
10
11     Unless required by applicable law or agreed to in writing, software
12     distributed under the License is distributed on an "AS IS" BASIS,
13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14     See the License for the specific language governing permissions and
15     limitations under the License.
16-->
17<ScrollView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent">
21
22    <LinearLayout
23        android:orientation="vertical"
24        android:layout_width="match_parent"
25        android:layout_height="match_parent"
26        android:padding="?android:dialogPreferredPadding">
27
28        <TextView
29            android:id="@+id/connect_hint"
30            android:layout_width="match_parent"
31            android:layout_height="wrap_content"
32            android:layout_marginBottom="16dip"
33            android:textAppearance="?android:attr/textAppearanceSmall"
34            android:visibility="gone"
35            android:text="@string/connect_hint_text" />
36
37        <TextView
38            android:id="@+id/labelHostname"
39            android:layout_width="wrap_content"
40            android:layout_height="wrap_content"
41            android:text="@string/hostname_or_ip"
42            android:textDirection="locale" />
43
44        <EditText
45            android:id="@+id/hostname"
46            android:layout_width="match_parent"
47            android:layout_height="wrap_content"
48            android:hint="@string/ip_hint"
49            android:maxLength="128"
50            android:maxLines="1"
51            android:inputType="textNoSuggestions" />
52
53        <ProgressBar
54            android:id="@+id/progress"
55            style="?android:attr/progressBarStyleHorizontal"
56            android:visibility="gone"
57            android:indeterminate="true"
58            android:layout_gravity="center"
59            android:layout_width="match_parent"
60            android:layout_height="wrap_content" />
61    </LinearLayout>
62</ScrollView>
63