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"