Project

General

Profile

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

examples / src / main / res / layout / effects2dlayout.xml @ af225332

1 f9afbbf3 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.effects2d.Effects2DSurfaceView
8 af225332 Leszek Koltunski
        android:id="@+id/effects2dSurfaceView"
9 f9afbbf3 Leszek Koltunski
        android:layout_width="fill_parent"
10
        android:layout_height="0dp"
11
        android:layout_weight="1" />
12
13 af225332 Leszek Koltunski
    <ScrollView
14
        android:id="@+id/effects2dscrollView"
15
        android:layout_width="match_parent"
16
        android:layout_height="0dp"
17
        android:layout_weight="0.82" >
18
19 f9afbbf3 Leszek Koltunski
    <LinearLayout
20
        android:id="@+id/linearLayout1"
21
        android:layout_width="fill_parent"
22
        android:layout_height="wrap_content"
23
        android:layout_weight="0.3"
24
        android:gravity="fill_horizontal|top"
25
        android:orientation="vertical"
26
        android:weightSum="1">
27
28
        <View
29
            android:layout_height="2dip"
30
            android:background="#FF0000"
31
            android:layout_width="match_parent"
32
            />
33
34
        <TextView
35
            android:layout_width="wrap_content"
36
            android:layout_height="wrap_content"
37
            android:text="@string/add"
38
            android:id="@+id/textView"
39
            android:layout_gravity="center_horizontal"/>
40
41
        <RadioGroup
42
            android:id="@+id/radioGroup1"
43
            android:layout_width="wrap_content"
44
            android:layout_height="wrap_content"
45
            android:paddingLeft="5dp"
46
            android:paddingRight="10dp"
47
            android:orientation="horizontal"
48
            android:layout_gravity="center_horizontal">
49
50
            <RadioButton
51 af225332 Leszek Koltunski
                android:id="@+id/effects2dDistort"
52 f9afbbf3 Leszek Koltunski
                android:layout_width="wrap_content"
53
                android:layout_height="wrap_content"
54
                android:checked="true"
55
                android:onClick="Distort"
56
                android:text="@string/distort"
57
                android:textSize="12dp"/>
58
59
            <RadioButton
60 af225332 Leszek Koltunski
                android:id="@+id/effects2dSink"
61 f9afbbf3 Leszek Koltunski
                android:layout_width="wrap_content"
62
                android:layout_height="wrap_content"
63
                android:onClick="Sink"
64
                android:text="@string/sink"
65
                android:textSize="12dp"/>
66
67
            <RadioButton
68 af225332 Leszek Koltunski
                android:id="@+id/effects2dTransparency"
69 f9afbbf3 Leszek Koltunski
                android:layout_width="wrap_content"
70
                android:layout_height="wrap_content"
71
                android:onClick="Transparency"
72
                android:text="@string/transparency"
73
                android:textSize="12dp"/>
74
75
            <RadioButton
76 af225332 Leszek Koltunski
                android:id="@+id/effects2dMacroblock"
77 f9afbbf3 Leszek Koltunski
                android:layout_width="wrap_content"
78
                android:layout_height="wrap_content"
79
                android:onClick="Macroblock"
80
                android:text="@string/macroblock"
81
                android:textSize="12dp"/>
82
83
            <RadioButton
84 af225332 Leszek Koltunski
                android:id="@+id/effects2dBrightness"
85 f9afbbf3 Leszek Koltunski
                android:layout_width="wrap_content"
86
                android:layout_height="wrap_content"
87
                android:onClick="Chroma"
88
                android:text="@string/chroma"
89
                android:textSize="12dp"/>
90
91
        </RadioGroup>
92
93
        <View
94
            android:layout_height="2dip"
95
            android:background="#FF0000"
96
            android:layout_width="match_parent"/>
97
98
        <TableLayout
99
            android:layout_width="fill_parent"
100
            android:layout_height="wrap_content"
101 af225332 Leszek Koltunski
            android:paddingTop="2dp"
102
            android:paddingBottom="2dp"
103
            android:stretchColumns="0,1,2"
104 f9afbbf3 Leszek Koltunski
            android:paddingLeft="10dp"
105
            android:paddingRight="10dp">
106
107
            <TableRow
108
                android:layout_width="wrap_content"
109
                android:layout_height="wrap_content"
110
                android:layout_gravity="center"
111
                android:orientation="vertical">
112
113 af225332 Leszek Koltunski
                <Button
114
                    android:layout_width="wrap_content"
115
                    android:layout_height="40dp"
116
                    android:text="@string/removebut"
117
                    android:id="@+id/effects2dRemoveID"
118
                    android:onClick="removeByID"/>
119
120 f9afbbf3 Leszek Koltunski
                <TextView
121
                    android:layout_width="match_parent"
122
                    android:layout_height="wrap_content"
123
                    android:text="@string/id"
124
                    android:id="@+id/textView3"
125
                    android:layout_gravity="center"/>
126
127
                <Spinner
128
                    android:layout_width="fill_parent"
129
                    android:layout_height="40dp"
130
                    android:id="@+id/effects2d_spinnerID"/>
131
            </TableRow>
132
133
            <TableRow
134
                android:layout_width="wrap_content"
135
                android:layout_height="wrap_content"
136
                android:layout_gravity="center">
137
138 af225332 Leszek Koltunski
                <Button
139
                    android:layout_width="wrap_content"
140
                    android:layout_height="40dp"
141
                    android:text="@string/removebut"
142
                    android:id="@+id/effects2dRemoveName"
143
                    android:onClick="removeByName"/>
144
145 f9afbbf3 Leszek Koltunski
                <TextView
146
                    android:layout_width="match_parent"
147
                    android:layout_height="wrap_content"
148
                    android:text="@string/name"
149
                    android:id="@+id/textView4"
150
                    android:layout_gravity="center"/>
151
152
                <Spinner
153
                    android:layout_width="fill_parent"
154
                    android:layout_height="40dp"
155
                    android:id="@+id/effects2d_spinnerName"/>
156
            </TableRow>
157
158
            <TableRow
159
                android:layout_width="wrap_content"
160
                android:layout_height="wrap_content"
161
                android:layout_gravity="center">
162
163 af225332 Leszek Koltunski
                <Button
164
                    android:layout_width="wrap_content"
165
                    android:layout_height="40dp"
166
                    android:text="@string/removebut"
167
                    android:id="@+id/effects2dRemoveType"
168
                    android:onClick="removeByType"/>
169
170 f9afbbf3 Leszek Koltunski
                <TextView
171
                    android:layout_width="wrap_content"
172
                    android:layout_height="wrap_content"
173
                    android:text="@string/type"
174
                    android:id="@+id/textView5"
175
                    android:layout_gravity="center"/>
176
177
                <Spinner
178
                    android:layout_width="fill_parent"
179
                    android:layout_height="40dp"
180
                    android:id="@+id/effects2d_spinnerType"/>
181
            </TableRow>
182
183
        </TableLayout>
184
        <View
185
            android:layout_height="2dip"
186
            android:background="#FF0000"
187
            android:layout_width="match_parent"
188
            />
189
190
        <TextView
191
            android:layout_width="wrap_content"
192
            android:layout_height="wrap_content"
193
            android:text="@string/list"
194
            android:id="@+id/textView6"
195
            android:layout_gravity="center_horizontal"/>
196
    </LinearLayout>
197 af225332 Leszek Koltunski
    </ScrollView>
198 f9afbbf3 Leszek Koltunski
</LinearLayout>