• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2017 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:orientation="vertical" >
22    <ViewSwitcher
23        android:id="@+id/wifi_name"
24        android:layout_width="match_parent"
25        android:layout_height="wrap_content">
26        <TextView
27            android:id="@+id/wifi_name_display"
28            android:layout_width="wrap_content"
29            android:layout_height="wrap_content"
30            android:textSize="@dimen/medium_text_size" />
31        <android.support.design.widget.TextInputLayout
32            android:layout_width="match_parent"
33            android:layout_height="wrap_content"
34            android:theme="@style/Theme.AppCompat.Light">
35            <EditText
36                android:id="@+id/wifi_name_input"
37                android:layout_width="match_parent"
38                android:layout_height="wrap_content"
39                android:focusableInTouchMode="true"
40                android:textSize="@dimen/medium_text_size"
41                android:hint="@string/wifi_ssid_hint" />
42        </android.support.design.widget.TextInputLayout>
43    </ViewSwitcher>
44    <android.support.design.widget.TextInputLayout
45        android:id="@+id/wifi_password_wrapper"
46        android:layout_width="match_parent"
47        android:layout_height="wrap_content"
48        android:theme="@style/Theme.AppCompat.Light">
49        <EditText
50            android:id="@+id/wifi_password"
51            android:layout_width="match_parent"
52            android:layout_height="wrap_content"
53            android:focusableInTouchMode="true"
54            android:textSize="@dimen/medium_text_size"
55            android:inputType="textPassword"
56            android:hint="@string/wifi_password" />
57    </android.support.design.widget.TextInputLayout>
58    <Button
59        android:id="@+id/wifi_connect"
60        android:layout_width="wrap_content"
61        android:layout_height="wrap_content"
62        android:text="@string/wifi_setup_connect" />
63</LinearLayout>