1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright (C) 2012 The Android Open Source Project
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
18 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
19 android:layout_width="match_parent"
20 android:layout_height="match_parent"
21 android:id="@+id/mainView">
24 android:id="@+id/imageStatePanel"
25 android:layout_width="200dip"
26 android:layout_height="match_parent"
27 android:layout_gravity="right"
28 android:orientation="vertical"
29 android:visibility="invisible" >
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:background="@android:color/transparent"
35 android:gravity="center"
36 android:padding="2dip"
37 android:text="@string/imageState"
38 android:textColor="@android:color/white"
39 android:textSize="24sp"
40 android:textStyle="bold" />
43 android:id="@+id/imageStateList"
44 android:layout_width="match_parent"
45 android:layout_height="wrap_content"
46 android:layout_weight="1" >
51 android:id="@+id/mainPanel"
52 android:layout_width="match_parent"
53 android:layout_height="match_parent"
54 android:layerType="hardware"
55 android:orientation="vertical" >
58 android:layout_width="match_parent"
59 android:layout_height="wrap_content"
60 android:layout_weight="1" >
62 <com.android.gallery3d.filtershow.imageshow.ImageShow
63 android:id="@+id/imageShow"
64 android:layout_width="match_parent"
65 android:layout_height="wrap_content" />
67 <com.android.gallery3d.filtershow.imageshow.ImageStraighten
68 android:id="@+id/imageStraighten"
69 android:layout_width="match_parent"
70 android:layout_height="wrap_content"
71 android:visibility="gone" />
73 <com.android.gallery3d.filtershow.imageshow.ImageCrop
74 android:id="@+id/imageCrop"
75 android:layout_width="match_parent"
76 android:layout_height="wrap_content"
77 android:visibility="gone" />
79 <com.android.gallery3d.filtershow.imageshow.ImageRotate
80 android:id="@+id/imageRotate"
81 android:layout_width="match_parent"
82 android:layout_height="wrap_content"
83 android:visibility="gone" />
85 <com.android.gallery3d.filtershow.imageshow.ImageFlip
86 android:id="@+id/imageFlip"
87 android:layout_width="match_parent"
88 android:layout_height="wrap_content"
89 android:visibility="gone" />
91 <com.android.gallery3d.filtershow.ui.ImageCurves
92 android:id="@+id/imageCurves"
93 android:layout_width="match_parent"
94 android:layout_height="wrap_content"
95 android:layerType="software"
96 android:visibility="gone" />
98 <com.android.gallery3d.filtershow.imageshow.ImageBorder
99 android:id="@+id/imageBorder"
100 android:layout_width="match_parent"
101 android:layout_height="wrap_content"
102 android:visibility="gone" />
104 <com.android.gallery3d.filtershow.imageshow.ImageZoom
105 android:id="@+id/imageZoom"
106 android:layout_width="match_parent"
107 android:layout_height="wrap_content"
108 android:visibility="gone" />
110 <com.android.gallery3d.filtershow.imageshow.ImageTinyPlanet
111 android:id="@+id/imageTinyPlanet"
112 android:layout_width="match_parent"
113 android:layout_height="wrap_content" />
115 <com.android.gallery3d.filtershow.imageshow.ImageRedEyes
116 android:id="@+id/imageRedEyes"
117 android:layout_width="match_parent"
118 android:layout_height="wrap_content"
119 android:visibility="gone" />
123 android:id="@+id/showOriginalButton"
124 android:layout_width="64dip"
125 android:layout_height="64dip"
126 android:layout_gravity="bottom"
127 android:scaleType="centerInside"
128 android:src="@drawable/filtershow_button_show_original" />
131 <com.android.gallery3d.filtershow.CenteredLinearLayout
132 xmlns:custom="http://schemas.android.com/apk/res/com.android.gallery3d"
133 android:layout_width="match_parent"
134 android:layout_height="wrap_content"
135 android:layout_gravity="center_horizontal|bottom"
136 android:background="@android:color/transparent"
137 custom:max_width="600dip"
138 android:orientation="vertical">
141 android:id="@+id/filterSeekBar"
142 android:layout_width="match_parent"
143 android:layout_height="wrap_content"
144 android:layout_gravity="bottom"
145 android:padding="16dip"
146 android:visibility="gone" />
148 </com.android.gallery3d.filtershow.CenteredLinearLayout>
151 android:id="@+id/loading"
152 style="@android:style/Widget.Holo.ProgressBar.Large"
153 android:layout_width="wrap_content"
154 android:layout_height="wrap_content"
155 android:layout_gravity="center"
156 android:indeterminate="true"
157 android:indeterminateOnly="true"
158 android:background="@color/background_screen" />
162 <com.android.gallery3d.filtershow.CenteredLinearLayout
163 xmlns:custom="http://schemas.android.com/apk/res/com.android.gallery3d"
164 android:id="@+id/filtersPanel"
165 android:layout_width="match_parent"
166 android:layout_height="wrap_content"
167 android:layout_gravity="center"
168 android:background="@color/background_main_toolbar"
169 custom:max_width="600dip"
170 android:orientation="vertical">
173 android:id="@+id/secondRowPanel"
174 android:layout_width="fill_parent"
175 android:layout_height="wrap_content" >
178 android:id="@+id/filterButtonsList"
179 android:layout_width="fill_parent"
180 android:layout_height="@dimen/thumbnail_size"
181 android:background="@color/background_main_toolbar"
182 android:orientation="horizontal"
183 android:visibility="gone" >
186 android:layout_width="fill_parent"
187 android:layout_height="fill_parent" >
188 <com.android.gallery3d.filtershow.ui.FramedTextButton
189 android:id="@+id/aspect"
190 android:layout_width="84dip"
191 android:layout_height="84dip"
192 android:layout_gravity="center_vertical|left"
193 android:background="@drawable/filtershow_button_background"
194 android:scaleType="centerInside"
195 android:visibility="gone"
196 android:text="@string/aspectNone_effect" />
198 <com.android.gallery3d.filtershow.ui.FramedTextButton
199 android:id="@+id/pickCurvesChannel"
200 android:layout_width="84dip"
201 android:layout_height="84dip"
202 android:layout_gravity="center_vertical|left"
203 android:background="@drawable/filtershow_button_background"
204 android:scaleType="centerInside"
205 android:visibility="gone"
206 android:text="@string/curves_channel_rgb" />
209 android:id="@+id/applyEffect"
210 android:layout_width="wrap_content"
211 android:layout_height="94dip"
212 android:layout_gravity="center"
213 android:layout_weight="1"
214 android:background="@android:color/transparent"
215 android:gravity="center"
216 android:text="@string/apply_effect"
217 android:textSize="18dip" />
222 <HorizontalScrollView
223 android:id="@+id/fxList"
224 android:layout_width="match_parent"
225 android:layout_height="@dimen/thumbnail_size"
226 android:scrollbars="none" >
229 android:id="@+id/listFilters"
230 android:layout_width="wrap_content"
231 android:layout_height="match_parent"
232 android:layout_marginLeft="@dimen/thumbnail_margin"
233 android:orientation="horizontal" >
235 </HorizontalScrollView>
237 <HorizontalScrollView
238 android:id="@+id/bordersList"
239 android:layout_width="match_parent"
240 android:layout_height="@dimen/thumbnail_size"
241 android:visibility="gone"
242 android:scrollbars="none" >
245 android:id="@+id/listBorders"
246 android:layout_width="wrap_content"
247 android:layout_height="match_parent"
248 android:layout_marginLeft="@dimen/thumbnail_margin"
249 android:orientation="horizontal" >
251 </HorizontalScrollView>
253 <HorizontalScrollView
254 android:id="@+id/geometryList"
255 android:layout_width="fill_parent"
256 android:layout_height="@dimen/thumbnail_size"
257 android:background="@color/background_main_toolbar"
258 android:visibility="gone"
259 android:scrollbars="none" >
262 android:id="@+id/listGeometry"
263 android:layout_width="wrap_content"
264 android:layout_height="fill_parent"
265 android:layout_gravity="center"
266 android:orientation="horizontal">
268 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
269 android:id="@+id/straightenButton"
270 style="@style/FilterShowBottomButton"
271 android:src="@drawable/filtershow_button_geometry_straighten"
272 android:text="@string/straighten" />
274 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
275 android:id="@+id/cropButton"
276 style="@style/FilterShowBottomButton"
277 android:src="@drawable/filtershow_button_geometry_crop"
278 android:text="@string/crop" />
280 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
281 android:id="@+id/rotateButton"
282 style="@style/FilterShowBottomButton"
283 android:src="@drawable/filtershow_button_geometry_rotate"
284 android:text="@string/rotate" />
286 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
287 android:id="@+id/flipButton"
288 style="@style/FilterShowBottomButton"
289 android:src="@drawable/filtershow_button_geometry_flip"
290 android:text="@string/mirror" />
292 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
293 android:id="@+id/redEyeButton"
294 style="@style/FilterShowBottomButton"
295 android:src="@drawable/photoeditor_effect_redeye"
296 android:text="@string/redeye" />
299 </HorizontalScrollView>
301 <HorizontalScrollView
302 android:id="@+id/colorsFxList"
303 android:layout_width="fill_parent"
304 android:layout_height="@dimen/thumbnail_size"
305 android:background="@color/background_main_toolbar"
306 android:visibility="gone"
307 android:scrollbars="none" >
310 android:id="@+id/listColorsFx"
311 android:layout_width="wrap_content"
312 android:layout_height="wrap_content"
313 android:layout_marginLeft="@dimen/thumbnail_margin"
314 android:orientation="horizontal" >
315 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
316 android:id="@+id/tinyplanetButton"
317 style="@style/FilterShowBottomButton"
318 android:src="@drawable/filtershow_button_colors_contrast"
319 android:text="@string/tinyplanet" />
321 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
322 android:id="@+id/wbalanceButton"
323 style="@style/FilterShowBottomButton"
324 android:src="@drawable/filtershow_button_colors_contrast"
325 android:text="@string/wbalance" />
327 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
328 android:id="@+id/exposureButton"
329 style="@style/FilterShowBottomButton"
330 android:src="@drawable/filtershow_button_colors_contrast"
331 android:text="@string/exposure" />
333 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
334 android:id="@+id/vignetteButton"
335 style="@style/FilterShowBottomButton"
336 android:src="@drawable/filtershow_button_colors_vignette"
337 android:text="@string/vignette" />
339 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
340 android:id="@+id/contrastButton"
341 style="@style/FilterShowBottomButton"
342 android:src="@drawable/filtershow_button_colors_contrast"
343 android:text="@string/contrast" />
345 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
346 android:id="@+id/shadowRecoveryButton"
347 style="@style/FilterShowBottomButton"
348 android:src="@drawable/filtershow_button_colors_contrast"
349 android:text="@string/shadow_recovery" />
351 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
352 android:id="@+id/vibranceButton"
353 style="@style/FilterShowBottomButton"
354 android:src="@drawable/filtershow_button_colors_contrast"
355 android:text="@string/vibrance" />
357 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
358 android:id="@+id/sharpenButton"
359 style="@style/FilterShowBottomButton"
360 android:src="@drawable/filtershow_button_colors_sharpen"
361 android:text="@string/sharpness" />
363 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
364 android:id="@+id/curvesButtonRGB"
365 style="@style/FilterShowBottomButton"
366 android:src="@drawable/filtershow_button_colors_curve"
367 android:text="@string/curvesRGB" />
369 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
370 android:id="@+id/hueButton"
371 style="@style/FilterShowBottomButton"
372 android:src="@drawable/filtershow_button_colors_contrast"
373 android:text="@string/hue" />
375 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
376 android:id="@+id/saturationButton"
377 style="@style/FilterShowBottomButton"
378 android:src="@drawable/filtershow_button_colors_contrast"
379 android:text="@string/saturation" />
381 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
382 android:id="@+id/bwfilterButton"
383 style="@style/FilterShowBottomButton"
384 android:src="@drawable/filtershow_button_colors_contrast"
385 android:text="@string/bwfilter" />
388 </HorizontalScrollView>
392 android:background="@color/toolbar_separation_line"
393 android:layout_height="1dip"
394 android:layout_width="match_parent" />
396 <com.android.gallery3d.filtershow.CenteredLinearLayout
397 xmlns:custom="http://schemas.android.com/apk/res/com.android.gallery3d"
398 android:layout_width="match_parent"
399 android:layout_height="wrap_content"
400 android:layout_gravity="center"
401 custom:max_width="400dip"
402 android:orientation="vertical">
405 android:layout_width="match_parent"
406 android:layout_height="48dip"
407 android:background="@color/background_main_toolbar" >
410 android:id="@+id/fxButton"
411 android:layout_width="@dimen/thumbnail_size"
412 android:layout_height="match_parent"
413 android:layout_weight="1"
414 android:background="@drawable/filtershow_button_background"
415 android:scaleType="centerInside"
416 android:src="@drawable/ic_photoeditor_effects" />
419 android:id="@+id/borderButton"
420 android:layout_width="@dimen/thumbnail_size"
421 android:layout_height="match_parent"
422 android:layout_weight="1"
423 android:background="@drawable/filtershow_button_background"
424 android:padding="2dip"
425 android:scaleType="centerInside"
426 android:src="@drawable/ic_photoeditor_border" />
429 android:id="@+id/geometryButton"
430 android:layout_width="@dimen/thumbnail_size"
431 android:layout_height="match_parent"
432 android:layout_weight="1"
433 android:background="@drawable/filtershow_button_background"
434 android:padding="2dip"
435 android:scaleType="centerInside"
436 android:src="@drawable/ic_photoeditor_fix" />
439 android:id="@+id/colorsButton"
440 android:layout_width="@dimen/thumbnail_size"
441 android:layout_height="match_parent"
442 android:layout_weight="1"
443 android:background="@drawable/filtershow_button_background"
444 android:padding="2dip"
445 android:scaleType="centerInside"
446 android:src="@drawable/ic_photoeditor_color" />
449 </com.android.gallery3d.filtershow.CenteredLinearLayout>
451 </com.android.gallery3d.filtershow.CenteredLinearLayout>
455 android:id="@+id/historyPanel"
456 android:layout_width="200dip"
457 android:layout_height="match_parent"
458 android:layout_gravity="right"
459 android:orientation="vertical"
460 android:visibility="invisible" >
463 android:layout_width="match_parent"
464 android:layout_height="wrap_content"
465 android:background="@android:color/transparent"
466 android:gravity="center"
467 android:padding="2dip"
468 android:text="@string/history"
469 android:textColor="@android:color/white"
470 android:textSize="24sp"
471 android:textStyle="bold" />
474 android:id="@+id/operationsList"
475 android:layout_width="match_parent"
476 android:layout_height="wrap_content"
477 android:layout_weight="1" >
481 android:layout_width="match_parent"
482 android:layout_height="wrap_content"
483 android:orientation="horizontal" >
486 android:id="@+id/resetOperationsButton"
487 style="@style/FilterShowHistoryButton"
488 android:gravity="center"
489 android:text="@string/reset" />
492 android:id="@+id/saveOperationsButton"
493 style="@style/FilterShowHistoryButton"
494 android:text="@string/save"
495 android:visibility="gone" />