Migrating PhoneInterface (Irrigation and SpeakerLocator) from old to new Nexus 5X...
[iot2.git] / benchmarks / other / PhoneInterface / Irrigation / app / src / main / res / layout / content_main.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3     xmlns:app="http://schemas.android.com/apk/res-auto"
4     xmlns:tools="http://schemas.android.com/tools"
5     android:layout_width="match_parent"
6     android:layout_height="match_parent"
7     android:paddingBottom="@dimen/activity_vertical_margin"
8     android:paddingLeft="@dimen/activity_horizontal_margin"
9     android:paddingRight="@dimen/activity_horizontal_margin"
10     android:paddingTop="@dimen/activity_vertical_margin"
11     app:layout_behavior="@string/appbar_scrolling_view_behavior"
12     tools:context="com.example.xubin.irrigation.MainActivity"
13     tools:showIn="@layout/activity_main">
14
15     <TextView
16         android:layout_width="wrap_content"
17         android:layout_height="wrap_content"
18         android:textAppearance="?android:attr/textAppearanceMedium"
19         android:text="Inches/Week"
20         android:id="@+id/textView1"
21         android:layout_marginTop="43dp"
22         android:layout_below="@+id/gatewayip"
23         android:layout_toLeftOf="@+id/water"
24         android:layout_toStartOf="@+id/water" />
25
26     <TextView
27         android:layout_width="wrap_content"
28         android:layout_height="wrap_content"
29         android:textAppearance="?android:attr/textAppearanceMedium"
30         android:text="Zip Code"
31         android:id="@+id/textView2"
32         android:layout_marginTop="52dp"
33         android:layout_below="@+id/water"
34         android:layout_toLeftOf="@+id/minute"
35         android:layout_toStartOf="@+id/minute" />
36
37     <TextView
38         android:layout_width="wrap_content"
39         android:layout_height="wrap_content"
40         android:textAppearance="?android:attr/textAppearanceMedium"
41         android:text="Water Days"
42         android:id="@+id/textView3"
43         android:layout_marginTop="52dp"
44         android:layout_below="@+id/textView1"
45         android:layout_toLeftOf="@+id/zip"
46         android:layout_toStartOf="@+id/zip" />
47
48     <TextView
49         android:layout_width="wrap_content"
50         android:layout_height="wrap_content"
51         android:textAppearance="?android:attr/textAppearanceMedium"
52         android:text="Inches/Minute"
53         android:id="@+id/textView"
54         android:layout_marginTop="50dp"
55         android:layout_below="@+id/textView2"
56         android:layout_toLeftOf="@+id/minute"
57         android:layout_toStartOf="@+id/minute" />
58
59     <EditText
60         android:layout_width="wrap_content"
61         android:layout_height="wrap_content"
62         android:layout_weight="1"
63         android:inputType="number|numberDecimal"
64         android:ems="10"
65         android:id="@+id/week"
66         android:text="20.01"
67         android:layout_alignBottom="@+id/textView1"
68         android:layout_toRightOf="@+id/textView1"
69         android:layout_toEndOf="@+id/textView1" />
70
71     <EditText
72         android:layout_width="wrap_content"
73         android:layout_height="wrap_content"
74         android:inputType="number"
75         android:ems="10"
76         android:id="@+id/water"
77         android:layout_toRightOf="@+id/textView3"
78         android:layout_alignBottom="@+id/textView3"
79         android:text="255">
80     </EditText>
81     <EditText
82         android:layout_width="wrap_content"
83         android:layout_height="wrap_content"
84         android:inputType="number"
85         android:ems="10"
86         android:id="@+id/zip"
87         android:layout_alignBottom="@+id/textView2"
88         android:layout_toRightOf="@+id/textView2"
89         android:text="92612" />
90     <EditText
91         android:layout_width="wrap_content"
92         android:layout_height="wrap_content"
93         android:inputType="number|text|numberDecimal"
94         android:ems="10"
95         android:id="@+id/minute"
96         android:text="1.50"
97         android:layout_above="@+id/submit"
98         android:layout_alignParentRight="true"
99         android:layout_alignParentEnd="true" />
100
101     <Button
102         android:layout_width="wrap_content"
103         android:layout_height="wrap_content"
104         android:text="Submit"
105         android:id="@+id/submit"
106         android:layout_marginTop="26dp"
107         android:layout_below="@+id/textView"
108         android:layout_alignLeft="@+id/minute"
109         android:layout_alignStart="@+id/minute" />
110
111     <TextView
112         android:layout_width="wrap_content"
113         android:layout_height="wrap_content"
114         android:textAppearance="?android:attr/textAppearanceMedium"
115         android:text="Gateway IP"
116         android:id="@+id/textView4"
117         android:layout_marginTop="69dp"
118         android:layout_alignParentTop="true"
119         android:layout_toLeftOf="@+id/gatewayip"
120         android:layout_toStartOf="@+id/gatewayip" />
121
122     <EditText
123         android:layout_width="wrap_content"
124         android:layout_height="wrap_content"
125         android:layout_weight="1"
126         android:inputType="number|numberDecimal"
127         android:ems="10"
128         android:id="@+id/gatewayip"
129         android:text="192.168.2.191"
130         android:layout_alignBottom="@+id/textView4"
131         android:layout_alignLeft="@+id/week"
132         android:layout_alignStart="@+id/week" />
133 </RelativeLayout>