1 <?xml version="1.0" encoding="utf-8"?>
\r
2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
\r
3 xmlns:app="http://schemas.android.com/apk/res-auto"
\r
4 xmlns:tools="http://schemas.android.com/tools"
\r
5 android:layout_width="match_parent"
\r
6 android:layout_height="match_parent"
\r
7 tools:context="com.example.lede2.EnrollDeviceActivity">
\r
11 android:layout_width="match_parent"
\r
12 android:layout_height="wrap_content"
\r
13 android:background="@drawable/blueberry"
\r
14 android:orientation="vertical">
\r
17 android:layout_width="match_parent"
\r
18 android:layout_height="match_parent"
\r
19 android:layout_gravity="center"
\r
20 android:orientation="horizontal">
\r
23 android:layout_width="250dp"
\r
24 android:layout_height="30dp"
\r
25 android:layout_marginLeft="20dp"
\r
26 android:layout_marginRight="30dp"
\r
27 android:background="@drawable/bluename"
\r
28 android:gravity="center"
\r
29 android:text="Network Name : LEDE"
\r
30 android:textColor="#000000"
\r
31 android:textSize="20sp" />
\r
34 android:id="@+id/wifi"
\r
35 android:layout_width="80dp"
\r
36 android:layout_height="80dp"
\r
37 android:layout_marginRight="15dp"
\r
38 android:layout_marginTop="10dp"
\r
39 android:background="@drawable/wifibackground"
\r
40 android:drawableTop="@drawable/wifi"
\r
41 android:padding="10dp"
\r
43 android:textColor="#00D8FF"
\r
44 android:textSize="10sp"
\r
45 android:textStyle="bold" />
\r
56 android:layout_width="match_parent"
\r
57 android:layout_height="wrap_content"
\r
58 android:layout_margin="5dp"
\r
59 android:orientation="vertical">
\r
62 android:id="@+id/explain"
\r
63 android:layout_width="match_parent"
\r
64 android:layout_height="30dp"
\r
65 android:layout_marginTop="10dp"
\r
66 android:background="@drawable/orange"
\r
67 android:gravity="center"
\r
68 android:inputType="text"
\r
69 android:text="Please use this password to connect to LEDE2\n"
\r
70 android:textColor="#000000"
\r
71 android:textIsSelectable="true"
\r
72 android:textSize="17sp"
\r
73 android:textStyle="bold" />
\r
77 android:id="@+id/add_psk"
\r
78 android:layout_width="match_parent"
\r
79 android:layout_height="40dp"
\r
80 android:background="@drawable/empty"
\r
81 android:gravity="center"
\r
82 android:inputType="text"
\r
83 android:textColor="@color/red"
\r
84 android:textIsSelectable="true"
\r
85 android:textSize="17sp"
\r
86 android:textStyle="bold" />
\r
90 android:id="@+id/name_text"
\r
91 android:layout_width="match_parent"
\r
92 android:layout_height="30dp"
\r
93 android:layout_marginTop="20dp"
\r
94 android:background="@drawable/orange"
\r
95 android:gravity="center"
\r
96 android:inputType="text"
\r
97 android:text="Please write your device name below"
\r
98 android:textColor="#000000"
\r
99 android:textIsSelectable="true"
\r
100 android:textSize="17sp"
\r
101 android:textStyle="bold" />
\r
105 android:id="@+id/name"
\r
106 android:layout_width="match_parent"
\r
107 android:layout_height="40dp"
\r
108 android:background="@drawable/empty"
\r
109 android:gravity="center"
\r
110 android:inputType="text"
\r
111 android:textColor="#000000"
\r
112 android:textIsSelectable="true"
\r
113 android:textSize="17sp"
\r
114 android:textStyle="bold" />
\r
117 android:layout_width="match_parent"
\r
118 android:layout_height="140dp"
\r
119 android:layout_margin="20dp"
\r
120 android:background="@drawable/empty"
\r
121 android:paddingLeft="10dp"
\r
122 android:text="Please copy and paste the above password into WiFi setup window or the app for the IOT device you are going to use.
\r
123 If done, please return and push the below \'DONE\' button."
\r
124 android:textColor="@color/blue"
\r
125 android:textSize="18sp"
\r
126 android:textStyle="bold" />
\r
129 android:id="@+id/done"
\r
130 android:layout_width="150dp"
\r
131 android:layout_height="50dp"
\r
132 android:layout_gravity="center"
\r
133 android:background="@drawable/pinkback"
\r
134 android:text="Done"
\r
135 android:textColor="#FFA7A7"
\r
136 android:textSize="25dp"
\r
137 android:textStyle="bold" />
\r