Blinking.
[ledtester.git] / res / layout / main.xml
bloba41cf9d8fd3bcc4c201014f7f0e051b01edad9d8
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3     LED tester for Android platform
4     Copyright (C) 2009 RafaƂ Rzepecki
6     This program is free software: you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation, either version 3 of the License, or
9     (at your option) any later version.
11     This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
16     You should have received a copy of the GNU General Public License
17     along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 -->
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20     android:orientation="vertical"
21     android:layout_width="fill_parent"
22     android:layout_height="fill_parent"
23     >
24     <LinearLayout
25         android:orientation="horizontal"
26         android:layout_width="fill_parent"
27         android:layout_height="fill_parent"
28         android:gravity="center"
29         android:layout_weight="1"
30     >
31         <TextView
32                 android:layout_height="wrap_content"
33                 android:layout_width="70dip"
34                 android:text="@string/red"
35         />
36                 <SeekBar 
37                         android:id="@+id/red" 
38                         android:layout_height="wrap_content" 
39                         android:layout_width="fill_parent"
40                         android:progressDrawable="@drawable/red_progress"
41                         android:max="255"
42                         android:progress="255"
43                 android:layout_weight="1"
44                 />
45                 <TextView
46                         android:id="@+id/red_label"
47                         android:layout_width="40dip"
48                         android:layout_height="wrap_content"
49                         android:layout_margin="5dip"
50                         android:text="255"
51                         android:gravity="right"
52                 />
53         </LinearLayout>
54     <LinearLayout
55         android:orientation="horizontal"
56         android:layout_width="fill_parent"
57         android:layout_height="fill_parent"
58         android:gravity="center"
59         android:layout_weight="1"
60     >
61         <TextView
62                 android:layout_height="wrap_content"
63                 android:layout_width="70dip"
64                 android:text="@string/green"
65         />
66                 <SeekBar 
67                         android:id="@+id/green" 
68                         android:layout_height="wrap_content" 
69                         android:layout_width="fill_parent"
70                         android:progressDrawable="@drawable/green_progress"
71                         android:max="255"
72                         android:progress="255"
73                 android:layout_weight="1"
74                 />
75                 <TextView
76                         android:id="@+id/green_label"
77                         android:layout_width="40dip"
78                         android:layout_height="wrap_content"
79                         android:layout_margin="5dip"
80                         android:text="255"
81                         android:gravity="right"
82                 />
83         </LinearLayout>
84     <LinearLayout
85         android:orientation="horizontal"
86         android:layout_width="fill_parent"
87         android:layout_height="fill_parent"
88         android:gravity="center"
89         android:layout_weight="1"
90     >
91         <TextView
92                 android:layout_height="wrap_content"
93                 android:layout_width="70dip"
94                 android:text="@string/blue"
95         />
96                 <SeekBar 
97                         android:id="@+id/blue" 
98                         android:layout_height="wrap_content" 
99                         android:layout_width="fill_parent"
100                         android:progressDrawable="@drawable/blue_progress"
101                         android:max="255"
102                         android:progress="255"
103                 android:layout_weight="1"
104                 />
105                 <TextView
106                         android:id="@+id/blue_label"
107                         android:layout_width="40dip"
108                         android:layout_height="wrap_content"
109                         android:layout_margin="5dip"
110                         android:text="255"
111                         android:gravity="right"
112                 />
113         </LinearLayout>
114         <LinearLayout
115                 android:orientation="horizontal"
116                 android:layout_width="fill_parent"
117                 android:layout_height="fill_parent"
118                 android:gravity="center"
119                 android:layout_weight="1"
120         >
121         <TextView
122                 android:layout_height="wrap_content"
123                 android:layout_width="50dip"
124                 android:text="@string/blink"
125         />
126         <LinearLayout
127                 android:orientation="vertical"
128                         android:layout_width="fill_parent"
129                         android:layout_height="fill_parent"
130                         android:gravity="center"
131                         android:layout_weight="1"
132                 >
133                         <LinearLayout
134                                 android:orientation="horizontal"
135                                 android:layout_width="fill_parent"
136                                 android:layout_height="fill_parent"
137                                 android:gravity="center"
138                                 android:layout_weight="1"
139                         >
140                         <TextView
141                                 android:layout_width="50dip"
142                                 android:layout_height="wrap_content"
143                                 android:layout_margin="5dip"
144                                 android:text="@string/onfor"
145                         />
146                         <SeekBar 
147                                 android:id="@+id/on_ms" 
148                                 android:layout_height="wrap_content" 
149                                 android:layout_width="fill_parent"
150                                 android:max="5000"
151                                 android:progress="5000"
152                         android:layout_weight="1"
153                         />
154                         <TextView
155                                 android:id="@+id/on_ms_label"
156                                 android:layout_width="40dip"
157                                 android:layout_height="wrap_content"
158                                 android:layout_margin="5dip"
159                                 android:text="5000"
160                                 android:gravity="right"
161                         />
162                         <TextView
163                                 android:layout_width="wrap_content"
164                                 android:layout_height="wrap_content"
165                                 android:layout_margin="0dip"
166                                 android:text="@string/ms"
167                         />
168                         </LinearLayout>
169                         <LinearLayout
170                                 android:orientation="horizontal"
171                                 android:layout_width="fill_parent"
172                                 android:layout_height="fill_parent"
173                                 android:gravity="center"
174                                 android:layout_weight="1"
175                         >
176                         <TextView
177                                 android:layout_width="50dip"
178                                 android:layout_height="wrap_content"
179                                 android:layout_margin="5dip"
180                                 android:text="@string/offfor"
181                         />
182                                 
183                         <SeekBar 
184                                 android:id="@+id/off_ms" 
185                                 android:layout_height="wrap_content" 
186                                 android:layout_width="fill_parent"
187                                 android:max="5000"
188                                 android:progress="0"
189                         android:layout_weight="1"
190                         />
191                         <TextView
192                                 android:id="@+id/off_ms_label"
193                                 android:layout_width="40dip"
194                                 android:layout_height="wrap_content"
195                                 android:layout_margin="5dip"
196                                 android:text="0"
197                                 android:gravity="right"
198                         />
199                         <TextView
200                                 android:layout_width="wrap_content"
201                                 android:layout_height="wrap_content"
202                                 android:layout_margin="0dip"
203                                 android:text="@string/ms"
204                         />
205                         </LinearLayout>
206                 </LinearLayout>
207         </LinearLayout>
208 </LinearLayout>