Project

General

Profile

Download (6.86 KB) Statistics
| Branch: | Revision:

examples / src / main / res / layout / flaglayout.xml @ bf3b5480

1 100e2da7 Leszek Koltunski
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
              android:layout_width="fill_parent"
4
              android:layout_height="fill_parent"
5
              android:orientation="vertical" >
6
7
    <org.distorted.examples.flag.FlagSurfaceView
8
        android:id="@+id/flagSurfaceView"
9
        android:layout_width="fill_parent"
10
        android:layout_height="0dp"
11
        android:layout_weight="0.85" />
12
13
    <TableLayout
14
        android:layout_width="match_parent"
15
        android:layout_height="wrap_content"
16 072682e6 Leszek Koltunski
        android:paddingLeft="3dp"
17
        android:paddingRight="3dp" >
18 100e2da7 Leszek Koltunski
19
        <TableRow
20
            android:id="@+id/tableRow1"
21
            android:layout_width="wrap_content"
22
            android:layout_height="wrap_content"
23
            android:paddingBottom="5dp"
24
            android:paddingTop="5dp" >
25
26
            <TextView
27
                android:id="@+id/flagAmplitude"
28 072682e6 Leszek Koltunski
                android:layout_width="0dp"
29 100e2da7 Leszek Koltunski
                android:layout_height="wrap_content"
30 b1c2b02f Leszek Koltunski
                android:layout_weight="1.0"
31
                android:layout_gravity="left|center_vertical"
32 100e2da7 Leszek Koltunski
                android:text="@string/amplitude"
33 072682e6 Leszek Koltunski
                android:textAppearance="?android:attr/textAppearanceSmall" />
34 100e2da7 Leszek Koltunski
35
            <SeekBar
36
                android:id="@+id/flagSeekAmplitude"
37 072682e6 Leszek Koltunski
                android:layout_width="wrap_content"
38 100e2da7 Leszek Koltunski
                android:layout_height="wrap_content"
39
                android:layout_weight="1"
40 072682e6 Leszek Koltunski
                android:paddingRight="5dp" />
41 100e2da7 Leszek Koltunski
42
            <TextView
43
                android:id="@+id/flagNoiseAmplitude"
44 072682e6 Leszek Koltunski
                android:layout_width="0dp"
45 100e2da7 Leszek Koltunski
                android:layout_height="wrap_content"
46 b1c2b02f Leszek Koltunski
                android:layout_weight="0.9"
47
                android:layout_gravity="center_vertical|left"
48 100e2da7 Leszek Koltunski
                android:text="@string/noise"
49 072682e6 Leszek Koltunski
                android:textAppearance="?android:attr/textAppearanceSmall" />
50 100e2da7 Leszek Koltunski
51
            <SeekBar
52
                android:id="@+id/flagSeekNoiseAmplitude"
53 072682e6 Leszek Koltunski
                android:layout_width="wrap_content"
54 100e2da7 Leszek Koltunski
                android:layout_height="wrap_content"
55
                android:layout_weight="1"
56 072682e6 Leszek Koltunski
                android:paddingRight="5dp" />
57 100e2da7 Leszek Koltunski
58
        </TableRow>
59
60
        <TableRow
61
            android:id="@+id/tableRow2"
62
            android:layout_width="wrap_content"
63
            android:layout_height="wrap_content"
64
            android:paddingBottom="5dp"
65
            android:paddingTop="5dp" >
66
67
            <TextView
68
                android:id="@+id/flagLength"
69 072682e6 Leszek Koltunski
                android:layout_width="0dp"
70 100e2da7 Leszek Koltunski
                android:layout_height="wrap_content"
71 b1c2b02f Leszek Koltunski
                android:layout_weight="1.0"
72
                android:layout_gravity="center_vertical|left"
73 100e2da7 Leszek Koltunski
                android:text="@string/length"
74 072682e6 Leszek Koltunski
                android:textAppearance="?android:attr/textAppearanceSmall" />
75 100e2da7 Leszek Koltunski
76
            <SeekBar
77
                android:id="@+id/flagSeekLength"
78 072682e6 Leszek Koltunski
                android:layout_width="wrap_content"
79 100e2da7 Leszek Koltunski
                android:layout_height="wrap_content"
80
                android:layout_weight="1"
81 072682e6 Leszek Koltunski
                android:paddingRight="5dp" />
82 100e2da7 Leszek Koltunski
83
            <TextView
84
                android:id="@+id/flagNoiseLength"
85 072682e6 Leszek Koltunski
                android:layout_width="0dp"
86 100e2da7 Leszek Koltunski
                android:layout_height="wrap_content"
87 b1c2b02f Leszek Koltunski
                android:layout_weight="0.9"
88
                android:layout_gravity="center_vertical|left"
89 100e2da7 Leszek Koltunski
                android:text="@string/noise"
90 072682e6 Leszek Koltunski
                android:textAppearance="?android:attr/textAppearanceSmall" />
91 100e2da7 Leszek Koltunski
92
            <SeekBar
93
                android:id="@+id/flagSeekNoiseLength"
94 072682e6 Leszek Koltunski
                android:layout_width="wrap_content"
95 100e2da7 Leszek Koltunski
                android:layout_height="wrap_content"
96
                android:layout_weight="1"
97 072682e6 Leszek Koltunski
                android:paddingRight="5dp" />
98 100e2da7 Leszek Koltunski
99
        </TableRow>
100
101
        <TableRow
102
            android:id="@+id/tableRow3"
103
            android:layout_width="wrap_content"
104
            android:layout_height="wrap_content"
105
            android:paddingBottom="5dp"
106
            android:paddingTop="5dp" >
107
108
            <TextView
109
                android:id="@+id/flagAngleA"
110 072682e6 Leszek Koltunski
                android:layout_width="0dp"
111 100e2da7 Leszek Koltunski
                android:layout_height="wrap_content"
112 b1c2b02f Leszek Koltunski
                android:layout_weight="1.0"
113
                android:layout_gravity="center_vertical|left"
114 100e2da7 Leszek Koltunski
                android:text="@string/angleA"
115 072682e6 Leszek Koltunski
                android:textAppearance="?android:attr/textAppearanceSmall" />
116 100e2da7 Leszek Koltunski
117
            <SeekBar
118
                android:id="@+id/flagSeekAngleA"
119 072682e6 Leszek Koltunski
                android:layout_width="wrap_content"
120 100e2da7 Leszek Koltunski
                android:layout_height="wrap_content"
121
                android:layout_weight="1"
122 072682e6 Leszek Koltunski
                android:paddingRight="5dp" />
123 100e2da7 Leszek Koltunski
124
            <TextView
125
                android:id="@+id/flagNoiseAngleA"
126 072682e6 Leszek Koltunski
                android:layout_width="0dp"
127 100e2da7 Leszek Koltunski
                android:layout_height="wrap_content"
128 b1c2b02f Leszek Koltunski
                android:layout_weight="0.9"
129
                android:layout_gravity="center_vertical|left"
130 100e2da7 Leszek Koltunski
                android:text="@string/noise"
131 072682e6 Leszek Koltunski
                android:textAppearance="?android:attr/textAppearanceSmall" />
132 100e2da7 Leszek Koltunski
133
            <SeekBar
134
                android:id="@+id/flagSeekNoiseAngleA"
135 072682e6 Leszek Koltunski
                android:layout_width="wrap_content"
136 100e2da7 Leszek Koltunski
                android:layout_height="wrap_content"
137
                android:layout_weight="1"
138 072682e6 Leszek Koltunski
                android:paddingRight="5dp" />
139 100e2da7 Leszek Koltunski
140
        </TableRow>
141
142
        <TableRow
143
            android:id="@+id/tableRow4"
144
            android:layout_width="wrap_content"
145
            android:layout_height="wrap_content"
146
            android:paddingBottom="5dp"
147
            android:paddingTop="5dp" >
148
149
            <TextView
150
                android:id="@+id/flagAngleB"
151 072682e6 Leszek Koltunski
                android:layout_width="0dp"
152 100e2da7 Leszek Koltunski
                android:layout_height="wrap_content"
153 b1c2b02f Leszek Koltunski
                android:layout_weight="1.0"
154
                android:layout_gravity="center_vertical|left"
155 100e2da7 Leszek Koltunski
                android:text="@string/angleB"
156 072682e6 Leszek Koltunski
                android:textAppearance="?android:attr/textAppearanceSmall" />
157 100e2da7 Leszek Koltunski
158
            <SeekBar
159
                android:id="@+id/flagSeekAngleB"
160 072682e6 Leszek Koltunski
                android:layout_width="wrap_content"
161 100e2da7 Leszek Koltunski
                android:layout_height="wrap_content"
162
                android:layout_weight="1"
163 072682e6 Leszek Koltunski
                android:paddingRight="5dp" />
164 100e2da7 Leszek Koltunski
165
            <TextView
166
                android:id="@+id/flagNoiseAngleB"
167 072682e6 Leszek Koltunski
                android:layout_width="0dp"
168 100e2da7 Leszek Koltunski
                android:layout_height="wrap_content"
169 b1c2b02f Leszek Koltunski
                android:layout_weight="0.9"
170
                android:layout_gravity="center_vertical|left"
171 100e2da7 Leszek Koltunski
                android:text="@string/noise"
172 072682e6 Leszek Koltunski
                android:textAppearance="?android:attr/textAppearanceSmall" />
173 100e2da7 Leszek Koltunski
174
            <SeekBar
175
                android:id="@+id/flagSeekNoiseAngleB"
176 072682e6 Leszek Koltunski
                android:layout_width="wrap_content"
177 100e2da7 Leszek Koltunski
                android:layout_height="wrap_content"
178
                android:layout_weight="1"
179 072682e6 Leszek Koltunski
                android:paddingRight="5dp" />
180 100e2da7 Leszek Koltunski
181
        </TableRow>
182
183
    </TableLayout>
184
185
</LinearLayout>