Slider labels, provide left margin to facilitate setting sliders far left.
[ledtester.git] / res / layout / main.xml
blobf7589bd56e6daeb441693f6d532b86021fa00b83
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>