Project

General

Profile

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

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

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 f988589e Leszek Koltunski
    <org.distorted.examples.dynamic.DynamicSurfaceView
10 8b7c0ab3 Leszek Koltunski
        android:id="@+id/dynamicSurfaceView"
11 427ab7bf Leszek Koltunski
        android:layout_width="fill_parent"
12
        android:layout_height="0dp"
13
        android:layout_weight="1" />
14
15
        <RadioGroup
16
            android:id="@+id/radioGroup2"
17
            android:layout_width="wrap_content"
18
            android:layout_height="wrap_content"
19
            android:gravity="fill_horizontal"
20
            android:orientation="horizontal"
21
            android:paddingBottom="5dp"
22
            android:paddingTop="5dp"
23
            android:weightSum="1.0" >
24
25
            <RadioButton
26 8b7c0ab3 Leszek Koltunski
                android:id="@+id/dynamic1D"
27 427ab7bf Leszek Koltunski
                android:layout_width="fill_parent"
28
                android:layout_height="wrap_content"
29
                android:layout_weight="0.25"
30
                android:onClick="Dim1D"
31
                android:text="@string/dim1D" />
32
33
            <RadioButton
34 8b7c0ab3 Leszek Koltunski
                android:id="@+id/dynamic2D"
35 427ab7bf Leszek Koltunski
                android:layout_width="fill_parent"
36
                android:layout_height="wrap_content"
37
                android:layout_weight="0.25"
38
                android:checked="true"
39
                android:onClick="Dim2D"
40
                android:text="@string/dim2D" />
41
42
            <RadioButton
43 8b7c0ab3 Leszek Koltunski
                android:id="@+id/dynamic3DXY"
44 427ab7bf Leszek Koltunski
                android:layout_width="fill_parent"
45
                android:layout_height="wrap_content"
46
                android:layout_weight="0.25"
47
                android:onClick="Dim3DXY"
48
                android:text="@string/dim3DXY" />
49
50
            <RadioButton
51 8b7c0ab3 Leszek Koltunski
                android:id="@+id/dynamic3DXZ"
52 427ab7bf Leszek Koltunski
                android:layout_width="fill_parent"
53
                android:layout_height="wrap_content"
54
                android:layout_weight="0.25"
55
                android:onClick="Dim3DXZ"
56
                android:text="@string/dim3DXZ" />
57
58
        </RadioGroup>
59
60
        <RadioGroup
61
            android:id="@+id/radioGroup1"
62
            android:layout_width="wrap_content"
63
            android:layout_height="wrap_content"
64
            android:orientation="horizontal"
65
            android:paddingRight="20dp" >
66
67
            <RadioButton
68 8b7c0ab3 Leszek Koltunski
                android:id="@+id/dynamicLoopButton"
69 427ab7bf Leszek Koltunski
                android:layout_width="wrap_content"
70
                android:layout_height="wrap_content"
71
                android:checked="true"
72
                android:onClick="Loop"
73
                android:text="@string/loop" />
74
75
            <RadioButton
76 8b7c0ab3 Leszek Koltunski
                android:id="@+id/dynamicPathButton"
77 427ab7bf Leszek Koltunski
                android:layout_width="wrap_content"
78
                android:layout_height="wrap_content"
79
                android:checked="false"
80
                android:onClick="Path"
81
                android:text="@string/path" />
82
83
            <RadioButton
84 8b7c0ab3 Leszek Koltunski
                android:id="@+id/dynamicJumpButton"
85 427ab7bf Leszek Koltunski
                android:layout_width="wrap_content"
86
                android:layout_height="wrap_content"
87
                android:checked="false"
88
                android:onClick="Jump"
89
                android:text="@string/jump" />
90
91
        </RadioGroup>
92
93
    <LinearLayout
94
        android:id="@+id/linearLayout1"
95
        android:layout_width="fill_parent"
96 ef0fd531 Leszek Koltunski
        android:layout_height="wrap_content"
97 427ab7bf Leszek Koltunski
        android:layout_gravity="center_vertical"
98 ef0fd531 Leszek Koltunski
        android:gravity="center|fill_horizontal"
99
        android:orientation="vertical">
100 427ab7bf Leszek Koltunski
101 ef0fd531 Leszek Koltunski
        <TextView
102
            android:id="@+id/dynamicTextDuration"
103 427ab7bf Leszek Koltunski
            android:layout_width="wrap_content"
104 ef0fd531 Leszek Koltunski
            android:layout_height="wrap_content"
105
            android:layout_gravity="center_horizontal"
106 427ab7bf Leszek Koltunski
            android:layout_weight="15"
107 ef0fd531 Leszek Koltunski
            android:paddingLeft="10dp"
108
            android:text="@string/duration"
109
            android:textAppearance="?android:attr/textAppearanceMedium"
110
            android:textSize="12sp" />
111
112
        <SeekBar
113
            android:id="@+id/dynamicSeekDuration"
114
            android:layout_width="match_parent"
115
            android:layout_height="wrap_content"
116
            android:layout_weight="15"
117
            android:paddingLeft="5dp"
118
            android:paddingRight="10dp" />
119 427ab7bf Leszek Koltunski
120 ef0fd531 Leszek Koltunski
        <TextView
121
            android:id="@+id/dynamicTextNoise"
122
            android:layout_width="wrap_content"
123
            android:layout_height="wrap_content"
124
            android:layout_gravity="center_horizontal"
125
            android:layout_weight="15"
126
            android:paddingLeft="10dp"
127
            android:text="@string/noise"
128
            android:textAppearance="?android:attr/textAppearanceMedium"
129
            android:textSize="12sp" />
130
131
        <LinearLayout
132
            android:orientation="horizontal"
133
            android:layout_width="match_parent"
134
            android:layout_height="match_parent"
135
            android:layout_weight="15">
136
137
            <SeekBar
138
                android:id="@+id/dynamicSeekNoise0"
139
                android:layout_width="match_parent"
140 427ab7bf Leszek Koltunski
                android:layout_height="wrap_content"
141 ef0fd531 Leszek Koltunski
                android:layout_weight="1"
142
                android:paddingLeft="5dp"
143
                android:paddingRight="10dp" />
144
145
            <SeekBar
146
                android:id="@+id/dynamicSeekNoise1"
147
                android:layout_width="match_parent"
148
                android:layout_height="wrap_content"
149
                android:layout_weight="1"
150
                android:paddingLeft="5dp"
151
                android:paddingRight="10dp" />
152
153
            <SeekBar
154
                android:id="@+id/dynamicSeekNoise2"
155
                android:layout_width="match_parent"
156 427ab7bf Leszek Koltunski
                android:layout_height="wrap_content"
157 ef0fd531 Leszek Koltunski
                android:layout_weight="1"
158
                android:paddingLeft="5dp"
159
                android:paddingRight="10dp" />
160
        </LinearLayout>
161
162 427ab7bf Leszek Koltunski
    </LinearLayout>
163
164
</LinearLayout>