blob: 1521585ad2a255dd59ffb6498b476d89254cd3c5 [file] [log] [blame]
nicolasroard4cc46092012-09-25 14:27:56 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
17<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
18 android:layout_width="match_parent"
19 android:layout_height="match_parent" >
20
21 <LinearLayout
22 android:id="@+id/historyPanel"
23 android:layout_width="200dip"
24 android:layout_height="match_parent"
25 android:orientation="vertical"
26 android:visibility="invisible" >
27
28 <TextView
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
31 android:background="@android:color/transparent"
32 android:gravity="center"
33 android:padding="2dip"
34 android:text="@string/history"
35 android:textColor="@android:color/white"
36 android:textSize="24sp"
37 android:textStyle="bold" />
38
39 <ListView
40 android:id="@+id/operationsList"
41 android:layout_width="match_parent"
42 android:layout_height="wrap_content"
43 android:layout_weight="1" >
44 </ListView>
45
46 <LinearLayout
47 android:layout_width="match_parent"
48 android:layout_height="wrap_content"
49 android:orientation="horizontal" >
50
51 <Button
52 android:id="@+id/resetOperationsButton"
53 style="@style/FilterShowHistoryButton"
54 android:text="@string/reset" />
55
56 <Button
57 android:id="@+id/saveOperationsButton"
58 style="@style/FilterShowHistoryButton"
59 android:text="@string/save" />
60 </LinearLayout>
61 </LinearLayout>
62
63 <LinearLayout
64 android:id="@+id/mainPanel"
65 android:layout_width="match_parent"
66 android:layout_height="match_parent"
67 android:layerType="hardware"
68 android:orientation="vertical" >
69
70 <LinearLayout
71 android:layout_width="fill_parent"
72 android:layout_height="48dip" >
73
74 <Button
75 android:id="@+id/saveButton"
76 style="@style/FilterShowTopButton"
77 android:layout_weight="1"
78 android:gravity="center_vertical|left"
79 android:text="@string/done" />
80
81 <ImageButton
82 android:id="@+id/showOriginalButton"
83 style="@style/FilterShowTopButton"
84 android:src="@drawable/filtershow_button_show_original" />
85
86 <ImageButton
87 android:id="@+id/undoButton"
88 style="@style/FilterShowTopButton"
89 android:src="@drawable/filtershow_button_undo" />
90
91 <ImageButton
92 android:id="@+id/redoButton"
93 style="@style/FilterShowTopButton"
94 android:src="@drawable/filtershow_button_redo" />
95
96 <ImageButton
97 android:id="@+id/operationsButton"
98 style="@style/FilterShowTopButton"
99 android:src="@drawable/filtershow_button_operations" />
100
101 </LinearLayout>
102
103 <com.android.gallery3d.filtershow.imageshow.ImageShow
104 android:id="@+id/imageShow"
105 android:layout_width="match_parent"
106 android:layout_height="wrap_content"
107 android:layout_weight="1" />
108
109 <com.android.gallery3d.filtershow.imageshow.ImageStraighten
110 android:id="@+id/imageStraighten"
111 android:layout_width="match_parent"
112 android:layout_height="wrap_content"
113 android:layout_weight="1"
114 android:visibility="gone" />
115
116 <com.android.gallery3d.filtershow.ui.ImageCurves
117 android:id="@+id/imageCurves"
118 android:layout_width="match_parent"
119 android:layout_height="wrap_content"
120 android:layout_weight="1"
121 android:visibility="gone" />
122
123 <com.android.gallery3d.filtershow.imageshow.ImageBorder
124 android:id="@+id/imageBorder"
125 android:layout_width="match_parent"
126 android:layout_height="wrap_content"
127 android:layout_weight="1"
128 android:visibility="gone" />
129
130 <HorizontalScrollView
131 android:id="@+id/fxList"
132 android:layout_width="match_parent"
133 android:layout_height="96dip" >
134
135 <LinearLayout
136 android:id="@+id/listFilters"
137 android:layout_width="wrap_content"
138 android:layout_height="match_parent"
139 android:orientation="horizontal" >
140 </LinearLayout>
141 </HorizontalScrollView>
142
143 <HorizontalScrollView
144 android:id="@+id/bordersList"
145 android:layout_width="match_parent"
146 android:layout_height="96dip"
147 android:visibility="gone" >
148
149 <LinearLayout
150 android:id="@+id/listBorders"
151 android:layout_width="wrap_content"
152 android:layout_height="match_parent"
153 android:orientation="horizontal" >
154 </LinearLayout>
155 </HorizontalScrollView>
156
157 <HorizontalScrollView
158 android:id="@+id/gemoetryList"
159 android:layout_width="fill_parent"
160 android:layout_height="96dip"
161 android:background="@color/background_toolbar"
162 android:visibility="gone" >
163
164 <LinearLayout
165 android:id="@+id/listGeometry"
166 android:layout_width="wrap_content"
167 android:layout_height="fill_parent"
168 android:orientation="horizontal" >
169
170 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
171 android:id="@+id/straightenButton"
172 style="@style/FilterShowBottomButton"
173 android:src="@drawable/filtershow_button_geometry_straighten"
174 android:text="@string/straighten" />
175
176 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
177 android:id="@+id/cropButton"
178 style="@style/FilterShowBottomButton"
179 android:src="@drawable/filtershow_button_geometry_crop"
180 android:text="@string/crop" />
181
182 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
183 android:id="@+id/rotateButton"
184 style="@style/FilterShowBottomButton"
185 android:src="@drawable/filtershow_button_geometry_rotate"
186 android:text="@string/rotate" />
187
188 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
189 android:id="@+id/flipButton"
190 style="@style/FilterShowBottomButton"
191 android:src="@drawable/filtershow_button_geometry_flip"
192 android:text="@string/flip" />
193 </LinearLayout>
194 </HorizontalScrollView>
195
196 <HorizontalScrollView
197 android:id="@+id/colorsFxList"
198 android:layout_width="fill_parent"
199 android:layout_height="96dip"
200 android:background="@color/background_toolbar"
201 android:visibility="gone" >
202
203 <LinearLayout
204 android:id="@+id/listColorsFx"
205 android:layout_width="wrap_content"
206 android:layout_height="wrap_content"
207 android:orientation="horizontal" >
208
209 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
210 android:id="@+id/vignetteButton"
211 style="@style/FilterShowBottomButton"
212 android:src="@drawable/filtershow_button_colors_vignette"
213 android:text="@string/vignette" />
214
215 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
216 android:id="@+id/curvesButtonRGB"
217 style="@style/FilterShowBottomButton"
218 android:src="@drawable/filtershow_button_colors_curve"
219 android:text="@string/curvesRGB" />
220
221 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
222 android:id="@+id/curvesButtonRed"
223 style="@style/FilterShowBottomButton"
224 android:src="@drawable/filtershow_button_colors_curve"
225 android:text="@string/curvesRed" />
226
227 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
228 android:id="@+id/curvesButtonGreen"
229 style="@style/FilterShowBottomButton"
230 android:src="@drawable/filtershow_button_colors_curve"
231 android:text="@string/curvesGreen" />
232
233 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
234 android:id="@+id/curvesButtonBlue"
235 style="@style/FilterShowBottomButton"
236 android:src="@drawable/filtershow_button_colors_curve"
237 android:text="@string/curvesBlue" />
238
239 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
240 android:id="@+id/sharpenButton"
241 style="@style/FilterShowBottomButton"
242 android:src="@drawable/filtershow_button_colors_sharpen"
243 android:text="@string/sharpen" />
244
245 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
246 android:id="@+id/vibranceButton"
247 style="@style/FilterShowBottomButton"
248 android:src="@drawable/filtershow_button_colors_contrast"
249 android:text="@string/vibrance" />
250
251 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
252 android:id="@+id/contrastButton"
253 style="@style/FilterShowBottomButton"
254 android:src="@drawable/filtershow_button_colors_contrast"
255 android:text="@string/contrast" />
256
257 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
258 android:id="@+id/saturationButton"
259 style="@style/FilterShowBottomButton"
260 android:src="@drawable/filtershow_button_colors_contrast"
261 android:text="@string/saturation" />
262
263 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
264 android:id="@+id/exposureButton"
265 style="@style/FilterShowBottomButton"
266 android:src="@drawable/filtershow_button_colors_contrast"
267 android:text="@string/exposure" />
268
269 <com.android.gallery3d.filtershow.ui.ImageButtonTitle
270 android:id="@+id/shadowRecoveryButton"
271 style="@style/FilterShowBottomButton"
272 android:src="@drawable/filtershow_button_colors_contrast"
273 android:text="@string/shadow_recovery" />
274 </LinearLayout>
275 </HorizontalScrollView>
276
277 <LinearLayout
278 android:layout_width="match_parent"
279 android:layout_height="48dip"
280 android:background="@color/background_main_toolbar" >
281
282 <ImageButton
283 android:id="@+id/fxButton"
284 android:layout_width="wrap_content"
285 android:layout_height="match_parent"
286 android:layout_weight="1"
287 android:background="@drawable/filtershow_button_background"
288 android:scaleType="centerInside"
289 android:src="@drawable/filtershow_button_fx" />
290
291 <ImageButton
292 android:id="@+id/borderButton"
293 android:layout_width="wrap_content"
294 android:layout_height="match_parent"
295 android:layout_weight="1"
296 android:background="@drawable/filtershow_button_background"
297 android:padding="2dip"
298 android:scaleType="centerInside"
299 android:src="@drawable/filtershow_button_border" />
300
301 <ImageButton
302 android:id="@+id/geometryButton"
303 android:layout_width="wrap_content"
304 android:layout_height="match_parent"
305 android:layout_weight="1"
306 android:background="@drawable/filtershow_button_background"
307 android:padding="2dip"
308 android:scaleType="centerInside"
309 android:src="@drawable/filtershow_button_geometry" />
310
311 <ImageButton
312 android:id="@+id/colorsButton"
313 android:layout_width="wrap_content"
314 android:layout_height="match_parent"
315 android:layout_weight="1"
316 android:background="@drawable/filtershow_button_background"
317 android:padding="2dip"
318 android:scaleType="centerInside"
319 android:src="@drawable/filtershow_button_colors" />
320 </LinearLayout>
321 </LinearLayout>
322
323</AbsoluteLayout>