1 |
80f37d1b
|
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.triblur.TriblurSurfaceView
|
8 |
|
|
android:id="@+id/triblurSurfaceView"
|
9 |
|
|
android:layout_width="fill_parent"
|
10 |
|
|
android:layout_height="0dp"
|
11 |
|
|
android:layout_weight="1" />
|
12 |
|
|
|
13 |
a935e9db
|
Leszek Koltunski
|
<LinearLayout
|
14 |
|
|
android:id="@+id/linearLayout3"
|
15 |
|
|
android:layout_width="fill_parent"
|
16 |
|
|
android:layout_height="wrap_content"
|
17 |
|
|
android:gravity="center|fill_horizontal"
|
18 |
|
|
android:orientation="horizontal"
|
19 |
|
|
android:background="@color/blue">
|
20 |
|
|
|
21 |
|
|
<Spinner
|
22 |
|
|
android:layout_width="0dp"
|
23 |
|
|
android:layout_height="50dp"
|
24 |
|
|
android:layout_weight="0.5"
|
25 |
|
|
android:id="@+id/triblur_spinnerQuality"
|
26 |
|
|
/>
|
27 |
|
|
|
28 |
|
|
<Spinner
|
29 |
|
|
android:layout_width="0dp"
|
30 |
|
|
android:layout_height="50dp"
|
31 |
|
|
android:layout_weight="0.5"
|
32 |
|
|
android:id="@+id/triblur_spinnerMode"
|
33 |
|
|
/>
|
34 |
|
|
</LinearLayout>
|
35 |
|
|
|
36 |
80f37d1b
|
Leszek Koltunski
|
<LinearLayout
|
37 |
|
|
android:layout_width="match_parent"
|
38 |
c40df162
|
Leszek Koltunski
|
android:layout_height="60dp"
|
39 |
|
|
android:background="@color/red"
|
40 |
|
|
android:orientation="horizontal"
|
41 |
|
|
android:paddingTop="5dp">
|
42 |
80f37d1b
|
Leszek Koltunski
|
|
43 |
c40df162
|
Leszek Koltunski
|
<RadioGroup
|
44 |
|
|
android:id="@+id/triblurRadio0"
|
45 |
|
|
android:layout_width="0dp"
|
46 |
|
|
android:layout_height="wrap_content"
|
47 |
|
|
android:layout_weight="0.6"
|
48 |
|
|
android:orientation="horizontal">
|
49 |
|
|
|
50 |
|
|
<RadioButton
|
51 |
|
|
android:id="@+id/triblurRadioNone0"
|
52 |
|
|
android:layout_width="match_parent"
|
53 |
|
|
android:layout_height="wrap_content"
|
54 |
|
|
android:layout_weight="1"
|
55 |
|
|
android:onClick="effect"
|
56 |
|
|
android:text="@string/none"
|
57 |
|
|
android:textSize="14sp" />
|
58 |
|
|
|
59 |
|
|
<RadioButton
|
60 |
|
|
android:id="@+id/triblurRadioBlur0"
|
61 |
|
|
android:layout_width="match_parent"
|
62 |
|
|
android:layout_height="wrap_content"
|
63 |
|
|
android:layout_weight="1"
|
64 |
|
|
android:checked="true"
|
65 |
|
|
android:onClick="effect"
|
66 |
|
|
android:text="@string/blur"
|
67 |
|
|
android:textSize="14sp" />
|
68 |
|
|
|
69 |
|
|
<RadioButton
|
70 |
|
|
android:id="@+id/triblurRadioGlow0"
|
71 |
|
|
android:layout_width="match_parent"
|
72 |
|
|
android:layout_height="wrap_content"
|
73 |
|
|
android:layout_weight="1"
|
74 |
|
|
android:onClick="effect"
|
75 |
|
|
android:text="@string/glow"
|
76 |
|
|
android:textSize="14sp" />
|
77 |
|
|
|
78 |
|
|
</RadioGroup>
|
79 |
80f37d1b
|
Leszek Koltunski
|
|
80 |
|
|
<SeekBar
|
81 |
|
|
android:id="@+id/triblurSeek0"
|
82 |
c40df162
|
Leszek Koltunski
|
android:layout_width="wrap_content"
|
83 |
80f37d1b
|
Leszek Koltunski
|
android:layout_height="fill_parent"
|
84 |
c40df162
|
Leszek Koltunski
|
android:layout_weight="0.4"
|
85 |
|
|
android:paddingLeft="5dp"
|
86 |
|
|
android:paddingRight="5dp" />
|
87 |
80f37d1b
|
Leszek Koltunski
|
</LinearLayout>
|
88 |
|
|
|
89 |
|
|
<LinearLayout
|
90 |
|
|
android:layout_width="match_parent"
|
91 |
c40df162
|
Leszek Koltunski
|
android:layout_height="60dp"
|
92 |
|
|
android:background="@color/yellow"
|
93 |
|
|
android:orientation="horizontal"
|
94 |
|
|
android:paddingTop="5dp">
|
95 |
80f37d1b
|
Leszek Koltunski
|
|
96 |
c40df162
|
Leszek Koltunski
|
<RadioGroup
|
97 |
|
|
android:id="@+id/triblurRadio1"
|
98 |
|
|
android:layout_width="0dp"
|
99 |
|
|
android:layout_height="wrap_content"
|
100 |
|
|
android:layout_weight="0.6"
|
101 |
|
|
android:orientation="horizontal">
|
102 |
|
|
|
103 |
|
|
<RadioButton
|
104 |
|
|
android:id="@+id/triblurRadioNone1"
|
105 |
|
|
android:layout_width="match_parent"
|
106 |
|
|
android:layout_height="wrap_content"
|
107 |
|
|
android:layout_weight="1"
|
108 |
|
|
android:onClick="effect"
|
109 |
|
|
android:text="@string/none"
|
110 |
|
|
android:textSize="14sp" />
|
111 |
|
|
|
112 |
|
|
<RadioButton
|
113 |
|
|
android:id="@+id/triblurRadioBlur1"
|
114 |
|
|
android:layout_width="match_parent"
|
115 |
|
|
android:layout_height="wrap_content"
|
116 |
|
|
android:layout_weight="1"
|
117 |
|
|
android:checked="true"
|
118 |
|
|
android:onClick="effect"
|
119 |
|
|
android:text="@string/blur"
|
120 |
|
|
android:textSize="14sp" />
|
121 |
|
|
|
122 |
|
|
<RadioButton
|
123 |
|
|
android:id="@+id/triblurRadioGlow1"
|
124 |
|
|
android:layout_width="match_parent"
|
125 |
|
|
android:layout_height="wrap_content"
|
126 |
|
|
android:layout_weight="1"
|
127 |
|
|
android:onClick="effect"
|
128 |
|
|
android:text="@string/glow"
|
129 |
|
|
android:textSize="14sp" />
|
130 |
|
|
|
131 |
|
|
</RadioGroup>
|
132 |
80f37d1b
|
Leszek Koltunski
|
|
133 |
|
|
<SeekBar
|
134 |
|
|
android:id="@+id/triblurSeek1"
|
135 |
c40df162
|
Leszek Koltunski
|
android:layout_width="wrap_content"
|
136 |
80f37d1b
|
Leszek Koltunski
|
android:layout_height="fill_parent"
|
137 |
c40df162
|
Leszek Koltunski
|
android:layout_weight="0.4"
|
138 |
|
|
android:paddingLeft="5dp"
|
139 |
|
|
android:paddingRight="5dp" />
|
140 |
80f37d1b
|
Leszek Koltunski
|
</LinearLayout>
|
141 |
|
|
|
142 |
|
|
<LinearLayout
|
143 |
|
|
android:layout_width="match_parent"
|
144 |
c40df162
|
Leszek Koltunski
|
android:layout_height="60dp"
|
145 |
|
|
android:background="@color/green"
|
146 |
|
|
android:orientation="horizontal"
|
147 |
|
|
android:paddingTop="5dp">
|
148 |
80f37d1b
|
Leszek Koltunski
|
|
149 |
c40df162
|
Leszek Koltunski
|
<RadioGroup
|
150 |
|
|
android:id="@+id/triblurRadio2"
|
151 |
|
|
android:layout_width="0dp"
|
152 |
|
|
android:layout_height="wrap_content"
|
153 |
|
|
android:layout_weight="0.6"
|
154 |
|
|
android:orientation="horizontal">
|
155 |
|
|
|
156 |
|
|
<RadioButton
|
157 |
|
|
android:id="@+id/triblurRadioNone2"
|
158 |
|
|
android:layout_width="match_parent"
|
159 |
|
|
android:layout_height="wrap_content"
|
160 |
|
|
android:layout_weight="1"
|
161 |
|
|
android:onClick="effect"
|
162 |
|
|
android:text="@string/none"
|
163 |
|
|
android:textSize="14sp" />
|
164 |
|
|
|
165 |
|
|
<RadioButton
|
166 |
|
|
android:id="@+id/triblurRadioBlur2"
|
167 |
|
|
android:layout_width="match_parent"
|
168 |
|
|
android:layout_height="wrap_content"
|
169 |
|
|
android:layout_weight="1"
|
170 |
|
|
android:checked="true"
|
171 |
|
|
android:onClick="effect"
|
172 |
|
|
android:text="@string/blur"
|
173 |
|
|
android:textSize="14sp" />
|
174 |
|
|
|
175 |
|
|
<RadioButton
|
176 |
|
|
android:id="@+id/triblurRadioGlow2"
|
177 |
|
|
android:layout_width="match_parent"
|
178 |
|
|
android:layout_height="wrap_content"
|
179 |
|
|
android:layout_weight="1"
|
180 |
|
|
android:onClick="effect"
|
181 |
|
|
android:text="@string/glow"
|
182 |
|
|
android:textSize="14sp" />
|
183 |
|
|
|
184 |
|
|
</RadioGroup>
|
185 |
80f37d1b
|
Leszek Koltunski
|
|
186 |
|
|
<SeekBar
|
187 |
|
|
android:id="@+id/triblurSeek2"
|
188 |
c40df162
|
Leszek Koltunski
|
android:layout_width="wrap_content"
|
189 |
80f37d1b
|
Leszek Koltunski
|
android:layout_height="fill_parent"
|
190 |
c40df162
|
Leszek Koltunski
|
android:layout_weight="0.4"
|
191 |
|
|
android:paddingLeft="5dp"
|
192 |
|
|
android:paddingRight="5dp" />
|
193 |
80f37d1b
|
Leszek Koltunski
|
</LinearLayout>
|
194 |
|
|
|
195 |
f1b8b412
|
Leszek Koltunski
|
<LinearLayout
|
196 |
|
|
android:id="@+id/linearLayout2"
|
197 |
|
|
android:layout_width="fill_parent"
|
198 |
|
|
android:layout_height="wrap_content"
|
199 |
|
|
android:gravity="center|fill_horizontal"
|
200 |
|
|
android:orientation="horizontal"
|
201 |
|
|
android:background="@color/cyan"
|
202 |
c40df162
|
Leszek Koltunski
|
android:paddingBottom="2dp"
|
203 |
|
|
android:paddingTop="2dp" >
|
204 |
f1b8b412
|
Leszek Koltunski
|
|
205 |
|
|
<RadioGroup
|
206 |
|
|
android:id="@+id/triblurRadioBackground"
|
207 |
|
|
android:layout_width="match_parent"
|
208 |
|
|
android:layout_height="wrap_content"
|
209 |
|
|
android:orientation="horizontal">
|
210 |
|
|
|
211 |
|
|
<RadioButton
|
212 |
|
|
android:id="@+id/triblurRadioBackground0"
|
213 |
|
|
android:layout_width="match_parent"
|
214 |
|
|
android:layout_height="wrap_content"
|
215 |
|
|
android:layout_weight="1"
|
216 |
|
|
android:onClick="backgroundColor"
|
217 |
|
|
android:text="@string/color_black"
|
218 |
|
|
android:textSize="16sp"/>
|
219 |
|
|
|
220 |
|
|
<RadioButton
|
221 |
|
|
android:id="@+id/triblurRadioBackground1"
|
222 |
|
|
android:layout_width="match_parent"
|
223 |
|
|
android:layout_height="wrap_content"
|
224 |
|
|
android:layout_weight="1"
|
225 |
|
|
android:checked="true"
|
226 |
|
|
android:onClick="backgroundColor"
|
227 |
|
|
android:text="@string/color_white"
|
228 |
|
|
android:textSize="16sp"/>
|
229 |
|
|
|
230 |
|
|
<RadioButton
|
231 |
|
|
android:id="@+id/triblurRadioBackground2"
|
232 |
|
|
android:layout_width="match_parent"
|
233 |
|
|
android:layout_height="wrap_content"
|
234 |
|
|
android:layout_weight="1"
|
235 |
|
|
android:onClick="backgroundColor"
|
236 |
|
|
android:text="@string/color_blue"
|
237 |
|
|
android:textSize="16sp"/>
|
238 |
|
|
|
239 |
|
|
</RadioGroup>
|
240 |
|
|
|
241 |
|
|
</LinearLayout>
|
242 |
|
|
|
243 |
80f37d1b
|
Leszek Koltunski
|
</LinearLayout>
|