Project

General

Profile

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

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

1 427ab7bf 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:layout_gravity="fill_horizontal"
6
    android:gravity="fill_horizontal"
7
    android:orientation="vertical" >
8
9 2666a48c Leszek Koltunski
    <LinearLayout
10
        android:orientation="horizontal"
11
        android:layout_width="match_parent"
12
        android:layout_height="48dp">
13
14
        <Spinner
15
            android:layout_width="0dp"
16
            android:layout_height="50dp"
17
            android:layout_weight="0.5"
18
            android:id="@+id/dynamicSpinnerDimension"/>
19
20
        <Spinner
21
            android:layout_width="0dp"
22
            android:layout_height="50dp"
23
            android:layout_weight="0.5"
24
            android:id="@+id/dynamicSpinnerMode"/>
25 427ab7bf Leszek Koltunski
26 2666a48c Leszek Koltunski
    </LinearLayout>
27 427ab7bf Leszek Koltunski
28
    <LinearLayout
29
        android:layout_width="fill_parent"
30 ef0fd531 Leszek Koltunski
        android:layout_height="wrap_content"
31 427ab7bf Leszek Koltunski
        android:layout_gravity="center_vertical"
32 ef0fd531 Leszek Koltunski
        android:gravity="center|fill_horizontal"
33
        android:orientation="vertical">
34 427ab7bf Leszek Koltunski
35 2666a48c Leszek Koltunski
        <LinearLayout
36
            android:layout_width="fill_parent"
37 ef0fd531 Leszek Koltunski
            android:layout_height="wrap_content"
38 2666a48c Leszek Koltunski
            android:orientation="horizontal"
39
            android:baselineAligned="false">
40 ef0fd531 Leszek Koltunski
41 2666a48c Leszek Koltunski
            <LinearLayout
42
                android:layout_width="wrap_content"
43
                android:layout_height="fill_parent"
44 dea555b9 Leszek Koltunski
                android:layout_weight="1"
45 2666a48c Leszek Koltunski
                android:layout_gravity="center_vertical"
46
                android:gravity="center|fill_horizontal"
47
                android:orientation="vertical">
48
49
                <TextView
50
                    android:id="@+id/dynamicTextDuration"
51
                    android:layout_width="wrap_content"
52
                    android:layout_height="wrap_content"
53
                    android:layout_gravity="center_horizontal"
54
                    android:text="@string/duration"
55
                    android:textAppearance="?android:attr/textAppearanceMedium"
56
                    android:textSize="12sp" />
57
            </LinearLayout>
58
59
            <LinearLayout
60
                android:layout_width="wrap_content"
61
                android:layout_height="fill_parent"
62 dea555b9 Leszek Koltunski
                android:layout_weight="1"
63 2666a48c Leszek Koltunski
                android:layout_gravity="center_vertical"
64
                android:gravity="center|fill_horizontal"
65
                android:orientation="vertical">
66
67
                <TextView
68
                    android:id="@+id/dynamicTextCount"
69
                    android:layout_width="wrap_content"
70
                    android:layout_height="wrap_content"
71
                    android:layout_gravity="center_horizontal"
72
                    android:text="@string/count"
73
                    android:textAppearance="?android:attr/textAppearanceMedium"
74
                    android:textSize="12sp" />
75 dea555b9 Leszek Koltunski
            </LinearLayout>
76 2666a48c Leszek Koltunski
77 dea555b9 Leszek Koltunski
            <LinearLayout
78
                android:layout_width="wrap_content"
79
                android:layout_height="fill_parent"
80
                android:layout_weight="1"
81
                android:layout_gravity="center_vertical"
82
                android:gravity="center|fill_horizontal"
83
                android:orientation="vertical">
84 2666a48c Leszek Koltunski
85 dea555b9 Leszek Koltunski
                <TextView
86
                    android:id="@+id/dynamicTextConvexity"
87
                    android:layout_width="wrap_content"
88
                    android:layout_height="wrap_content"
89
                    android:layout_gravity="center_horizontal"
90
                    android:text="@string/convexity"
91
                    android:textAppearance="?android:attr/textAppearanceMedium"
92
                    android:textSize="12sp" />
93 2666a48c Leszek Koltunski
            </LinearLayout>
94 dea555b9 Leszek Koltunski
        </LinearLayout>
95 2666a48c Leszek Koltunski
96 dea555b9 Leszek Koltunski
        <LinearLayout
97
            android:orientation="horizontal"
98
            android:layout_width="match_parent"
99
            android:layout_height="match_parent"
100
            android:layout_weight="15"
101
            android:paddingBottom="5dp">
102
103
            <SeekBar
104
                android:id="@+id/dynamicSeekDuration"
105
                android:layout_width="match_parent"
106
                android:layout_height="wrap_content"
107
                android:layout_weight="1"
108
                android:paddingLeft="10dp"
109
                android:paddingRight="5dp" />
110
111
            <SeekBar
112
                android:id="@+id/dynamicSeekCount"
113
                android:layout_width="match_parent"
114
                android:layout_height="wrap_content"
115
                android:layout_weight="1"
116
                android:paddingLeft="5dp"
117
                android:paddingRight="5dp" />
118
119
            <SeekBar
120
                android:id="@+id/dynamicSeekConvexity"
121
                android:layout_width="match_parent"
122
                android:layout_height="wrap_content"
123
                android:layout_weight="1"
124
                android:paddingLeft="5dp"
125
                android:paddingRight="10dp" />
126 2666a48c Leszek Koltunski
        </LinearLayout>
127 427ab7bf Leszek Koltunski
128 ef0fd531 Leszek Koltunski
        <TextView
129
            android:id="@+id/dynamicTextNoise"
130
            android:layout_width="wrap_content"
131
            android:layout_height="wrap_content"
132
            android:layout_gravity="center_horizontal"
133
            android:layout_weight="15"
134
            android:text="@string/noise"
135
            android:textAppearance="?android:attr/textAppearanceMedium"
136
            android:textSize="12sp" />
137
138
        <LinearLayout
139
            android:orientation="horizontal"
140
            android:layout_width="match_parent"
141
            android:layout_height="match_parent"
142 da77ffd8 Leszek Koltunski
            android:layout_weight="15"
143
            android:paddingBottom="5dp">
144 ef0fd531 Leszek Koltunski
145
            <SeekBar
146
                android:id="@+id/dynamicSeekNoise0"
147
                android:layout_width="match_parent"
148 427ab7bf Leszek Koltunski
                android:layout_height="wrap_content"
149 ef0fd531 Leszek Koltunski
                android:layout_weight="1"
150 2666a48c Leszek Koltunski
                android:paddingLeft="10dp"
151
                android:paddingRight="5dp" />
152 ef0fd531 Leszek Koltunski
153
            <SeekBar
154
                android:id="@+id/dynamicSeekNoise1"
155
                android:layout_width="match_parent"
156
                android:layout_height="wrap_content"
157
                android:layout_weight="1"
158
                android:paddingLeft="5dp"
159 2666a48c Leszek Koltunski
                android:paddingRight="5dp" />
160 ef0fd531 Leszek Koltunski
161
            <SeekBar
162
                android:id="@+id/dynamicSeekNoise2"
163
                android:layout_width="match_parent"
164 427ab7bf Leszek Koltunski
                android:layout_height="wrap_content"
165 ef0fd531 Leszek Koltunski
                android:layout_weight="1"
166
                android:paddingLeft="5dp"
167 d586fda6 Leszek Koltunski
                android:paddingRight="5dp" />
168
169
            <SeekBar
170
                android:id="@+id/dynamicSeekNoise3"
171
                android:layout_width="match_parent"
172
                android:layout_height="wrap_content"
173
                android:layout_weight="1"
174
                android:paddingLeft="5dp"
175 ef0fd531 Leszek Koltunski
                android:paddingRight="10dp" />
176
        </LinearLayout>
177
178 427ab7bf Leszek Koltunski
    </LinearLayout>
179
180 8db5b725 Leszek Koltunski
    <org.distorted.examples.dynamic.DynamicSurfaceView
181
        android:id="@+id/dynamicSurfaceView"
182
        android:layout_width="fill_parent"
183
        android:layout_height="0dp"
184 e52efe17 Leszek Koltunski
        android:layout_weight="0.8" />
185
186
    <org.distorted.examples.dynamic.DynamicSpeedSurfaceView
187
        android:id="@+id/dynamicSpeedSurfaceView"
188
        android:layout_width="fill_parent"
189
        android:layout_height="0dp"
190
        android:layout_weight="0.2" />
191 8db5b725 Leszek Koltunski
192
    <LinearLayout
193
        android:orientation="horizontal"
194
        android:layout_width="match_parent"
195 da77ffd8 Leszek Koltunski
        android:layout_height="48dp"
196
        android:paddingTop="5dp">
197 8db5b725 Leszek Koltunski
198
        <Button
199
            android:id="@+id/dynamicButtonStart"
200
            android:layout_width="wrap_content"
201
            android:layout_height="match_parent"
202
            android:layout_weight="0.5"
203
            android:paddingLeft="10dp"
204
            android:paddingRight="10dp"
205
            android:onClick="Start"
206
            android:text="@string/start" />
207
208
        <Button
209
            android:id="@+id/dynamicButtonReset"
210
            android:layout_width="wrap_content"
211
            android:layout_height="match_parent"
212
            android:layout_weight="0.5"
213
            android:paddingLeft="10dp"
214
            android:paddingRight="10dp"
215
            android:onClick="Reset"
216
            android:text="@string/reset" />
217
    </LinearLayout>
218
219 427ab7bf Leszek Koltunski
</LinearLayout>