1 <?xml version="1.0" encoding="utf-8"?>
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/>.
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"
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"
32 android:layout_height="wrap_content"
33 android:layout_width="70dip"
34 android:text="@string/red"
38 android:layout_height="wrap_content"
39 android:layout_width="fill_parent"
40 android:progressDrawable="@drawable/red_progress"
42 android:progress="255"
43 android:layout_weight="1"
46 android:id="@+id/red_label"
47 android:layout_width="40dip"
48 android:layout_height="wrap_content"
49 android:layout_margin="5dip"
51 android:gravity="right"
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"
62 android:layout_height="wrap_content"
63 android:layout_width="70dip"
64 android:text="@string/green"
67 android:id="@+id/green"
68 android:layout_height="wrap_content"
69 android:layout_width="fill_parent"
70 android:progressDrawable="@drawable/green_progress"
72 android:progress="255"
73 android:layout_weight="1"
76 android:id="@+id/green_label"
77 android:layout_width="40dip"
78 android:layout_height="wrap_content"
79 android:layout_margin="5dip"
81 android:gravity="right"
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"
92 android:layout_height="wrap_content"
93 android:layout_width="70dip"
94 android:text="@string/blue"
97 android:id="@+id/blue"
98 android:layout_height="wrap_content"
99 android:layout_width="fill_parent"
100 android:progressDrawable="@drawable/blue_progress"
102 android:progress="255"
103 android:layout_weight="1"
106 android:id="@+id/blue_label"
107 android:layout_width="40dip"
108 android:layout_height="wrap_content"
109 android:layout_margin="5dip"
111 android:gravity="right"
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"
122 android:layout_height="wrap_content"
123 android:layout_width="50dip"
124 android:text="@string/blink"
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"
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"
141 android:layout_width="50dip"
142 android:layout_height="wrap_content"
143 android:layout_margin="5dip"
144 android:text="@string/onfor"
147 android:id="@+id/on_ms"
148 android:layout_height="wrap_content"
149 android:layout_width="fill_parent"
151 android:progress="5000"
152 android:layout_weight="1"
155 android:id="@+id/on_ms_label"
156 android:layout_width="40dip"
157 android:layout_height="wrap_content"
158 android:layout_margin="5dip"
160 android:gravity="right"
163 android:layout_width="wrap_content"
164 android:layout_height="wrap_content"
165 android:layout_margin="0dip"
166 android:text="@string/ms"
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"
177 android:layout_width="50dip"
178 android:layout_height="wrap_content"
179 android:layout_margin="5dip"
180 android:text="@string/offfor"
184 android:id="@+id/off_ms"
185 android:layout_height="wrap_content"
186 android:layout_width="fill_parent"
189 android:layout_weight="1"
192 android:id="@+id/off_ms_label"
193 android:layout_width="40dip"
194 android:layout_height="wrap_content"
195 android:layout_margin="5dip"
197 android:gravity="right"
200 android:layout_width="wrap_content"
201 android:layout_height="wrap_content"
202 android:layout_margin="0dip"
203 android:text="@string/ms"