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"
33 android:layout_height="wrap_content"
34 android:layout_width="fill_parent"
35 android:progressDrawable="@drawable/red_progress"
37 android:progress="255"
38 android:layout_weight="1"
41 android:id="@+id/red_label"
42 android:layout_width="40dip"
43 android:layout_height="wrap_content"
44 android:layout_margin="5dip"
46 android:gravity="right"
50 android:orientation="horizontal"
51 android:layout_width="fill_parent"
52 android:layout_height="fill_parent"
53 android:gravity="center"
54 android:layout_weight="1"
57 android:id="@+id/green"
58 android:layout_height="wrap_content"
59 android:layout_width="fill_parent"
60 android:progressDrawable="@drawable/green_progress"
62 android:progress="255"
63 android:layout_weight="1"
66 android:id="@+id/green_label"
67 android:layout_width="40dip"
68 android:layout_height="wrap_content"
69 android:layout_margin="5dip"
71 android:gravity="right"
75 android:orientation="horizontal"
76 android:layout_width="fill_parent"
77 android:layout_height="fill_parent"
78 android:gravity="center"
79 android:layout_weight="1"
82 android:id="@+id/blue"
83 android:layout_height="wrap_content"
84 android:layout_width="fill_parent"
85 android:progressDrawable="@drawable/blue_progress"
87 android:progress="255"
88 android:layout_weight="1"
91 android:id="@+id/blue_label"
92 android:layout_width="40dip"
93 android:layout_height="wrap_content"
94 android:layout_margin="5dip"
96 android:gravity="right"