nicolasroard | 4cc4609 | 2012-09-25 14:27:56 -0700 | [diff] [blame] | 1 | <?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 | |
nicolasroard | 78042f3 | 2012-09-27 20:54:48 -0700 | [diff] [blame] | 70 | <FrameLayout |
| 71 | android:layout_weight="1" |
| 72 | android:layout_width="match_parent" |
| 73 | android:layout_height="wrap_content" > |
nicolasroard | 4cc4609 | 2012-09-25 14:27:56 -0700 | [diff] [blame] | 74 | |
nicolasroard | 78042f3 | 2012-09-27 20:54:48 -0700 | [diff] [blame] | 75 | <com.android.gallery3d.filtershow.imageshow.ImageShow |
| 76 | android:id="@+id/imageShow" |
| 77 | android:layout_width="match_parent" |
| 78 | android:layout_height="wrap_content" /> |
| 79 | |
| 80 | <com.android.gallery3d.filtershow.imageshow.ImageStraighten |
| 81 | android:id="@+id/imageStraighten" |
| 82 | android:layout_width="match_parent" |
| 83 | android:layout_height="wrap_content" |
| 84 | android:visibility="gone" /> |
| 85 | |
| 86 | <com.android.gallery3d.filtershow.ui.ImageCurves |
| 87 | android:id="@+id/imageCurves" |
| 88 | android:layout_width="match_parent" |
| 89 | android:layout_height="wrap_content" |
| 90 | android:visibility="gone" /> |
| 91 | |
| 92 | <com.android.gallery3d.filtershow.imageshow.ImageBorder |
| 93 | android:id="@+id/imageBorder" |
| 94 | android:layout_width="match_parent" |
| 95 | android:layout_height="wrap_content" |
| 96 | android:visibility="gone" /> |
nicolasroard | 4cc4609 | 2012-09-25 14:27:56 -0700 | [diff] [blame] | 97 | |
| 98 | <ImageButton |
| 99 | android:id="@+id/showOriginalButton" |
nicolasroard | 78042f3 | 2012-09-27 20:54:48 -0700 | [diff] [blame] | 100 | android:layout_height="64dip" |
| 101 | android:layout_width="64dip" |
| 102 | android:scaleType="centerInside" |
| 103 | android:layout_gravity="bottom" |
nicolasroard | 4cc4609 | 2012-09-25 14:27:56 -0700 | [diff] [blame] | 104 | android:src="@drawable/filtershow_button_show_original" /> |
nicolasroard | 78042f3 | 2012-09-27 20:54:48 -0700 | [diff] [blame] | 105 | |
| 106 | </FrameLayout> |
nicolasroard | 4cc4609 | 2012-09-25 14:27:56 -0700 | [diff] [blame] | 107 | |
| 108 | <HorizontalScrollView |
| 109 | android:id="@+id/fxList" |
| 110 | android:layout_width="match_parent" |
| 111 | android:layout_height="96dip" > |
| 112 | |
| 113 | <LinearLayout |
| 114 | android:id="@+id/listFilters" |
| 115 | android:layout_width="wrap_content" |
| 116 | android:layout_height="match_parent" |
| 117 | android:orientation="horizontal" > |
| 118 | </LinearLayout> |
| 119 | </HorizontalScrollView> |
| 120 | |
| 121 | <HorizontalScrollView |
| 122 | android:id="@+id/bordersList" |
| 123 | android:layout_width="match_parent" |
| 124 | android:layout_height="96dip" |
| 125 | android:visibility="gone" > |
| 126 | |
| 127 | <LinearLayout |
| 128 | android:id="@+id/listBorders" |
| 129 | android:layout_width="wrap_content" |
| 130 | android:layout_height="match_parent" |
| 131 | android:orientation="horizontal" > |
| 132 | </LinearLayout> |
| 133 | </HorizontalScrollView> |
| 134 | |
| 135 | <HorizontalScrollView |
| 136 | android:id="@+id/gemoetryList" |
| 137 | android:layout_width="fill_parent" |
| 138 | android:layout_height="96dip" |
| 139 | android:background="@color/background_toolbar" |
| 140 | android:visibility="gone" > |
| 141 | |
| 142 | <LinearLayout |
| 143 | android:id="@+id/listGeometry" |
| 144 | android:layout_width="wrap_content" |
| 145 | android:layout_height="fill_parent" |
| 146 | android:orientation="horizontal" > |
| 147 | |
| 148 | <com.android.gallery3d.filtershow.ui.ImageButtonTitle |
| 149 | android:id="@+id/straightenButton" |
| 150 | style="@style/FilterShowBottomButton" |
| 151 | android:src="@drawable/filtershow_button_geometry_straighten" |
| 152 | android:text="@string/straighten" /> |
| 153 | |
| 154 | <com.android.gallery3d.filtershow.ui.ImageButtonTitle |
| 155 | android:id="@+id/cropButton" |
| 156 | style="@style/FilterShowBottomButton" |
| 157 | android:src="@drawable/filtershow_button_geometry_crop" |
| 158 | android:text="@string/crop" /> |
| 159 | |
| 160 | <com.android.gallery3d.filtershow.ui.ImageButtonTitle |
| 161 | android:id="@+id/rotateButton" |
| 162 | style="@style/FilterShowBottomButton" |
| 163 | android:src="@drawable/filtershow_button_geometry_rotate" |
| 164 | android:text="@string/rotate" /> |
| 165 | |
| 166 | <com.android.gallery3d.filtershow.ui.ImageButtonTitle |
| 167 | android:id="@+id/flipButton" |
| 168 | style="@style/FilterShowBottomButton" |
| 169 | android:src="@drawable/filtershow_button_geometry_flip" |
| 170 | android:text="@string/flip" /> |
| 171 | </LinearLayout> |
| 172 | </HorizontalScrollView> |
| 173 | |
| 174 | <HorizontalScrollView |
| 175 | android:id="@+id/colorsFxList" |
| 176 | android:layout_width="fill_parent" |
| 177 | android:layout_height="96dip" |
| 178 | android:background="@color/background_toolbar" |
| 179 | android:visibility="gone" > |
| 180 | |
| 181 | <LinearLayout |
| 182 | android:id="@+id/listColorsFx" |
| 183 | android:layout_width="wrap_content" |
| 184 | android:layout_height="wrap_content" |
| 185 | android:orientation="horizontal" > |
| 186 | |
| 187 | <com.android.gallery3d.filtershow.ui.ImageButtonTitle |
| 188 | android:id="@+id/vignetteButton" |
| 189 | style="@style/FilterShowBottomButton" |
| 190 | android:src="@drawable/filtershow_button_colors_vignette" |
| 191 | android:text="@string/vignette" /> |
| 192 | |
| 193 | <com.android.gallery3d.filtershow.ui.ImageButtonTitle |
| 194 | android:id="@+id/curvesButtonRGB" |
| 195 | style="@style/FilterShowBottomButton" |
| 196 | android:src="@drawable/filtershow_button_colors_curve" |
| 197 | android:text="@string/curvesRGB" /> |
| 198 | |
| 199 | <com.android.gallery3d.filtershow.ui.ImageButtonTitle |
| 200 | android:id="@+id/curvesButtonRed" |
| 201 | style="@style/FilterShowBottomButton" |
| 202 | android:src="@drawable/filtershow_button_colors_curve" |
| 203 | android:text="@string/curvesRed" /> |
| 204 | |
| 205 | <com.android.gallery3d.filtershow.ui.ImageButtonTitle |
| 206 | android:id="@+id/curvesButtonGreen" |
| 207 | style="@style/FilterShowBottomButton" |
| 208 | android:src="@drawable/filtershow_button_colors_curve" |
| 209 | android:text="@string/curvesGreen" /> |
| 210 | |
| 211 | <com.android.gallery3d.filtershow.ui.ImageButtonTitle |
| 212 | android:id="@+id/curvesButtonBlue" |
| 213 | style="@style/FilterShowBottomButton" |
| 214 | android:src="@drawable/filtershow_button_colors_curve" |
| 215 | android:text="@string/curvesBlue" /> |
| 216 | |
| 217 | <com.android.gallery3d.filtershow.ui.ImageButtonTitle |
| 218 | android:id="@+id/sharpenButton" |
| 219 | style="@style/FilterShowBottomButton" |
| 220 | android:src="@drawable/filtershow_button_colors_sharpen" |
| 221 | android:text="@string/sharpen" /> |
| 222 | |
| 223 | <com.android.gallery3d.filtershow.ui.ImageButtonTitle |
| 224 | android:id="@+id/vibranceButton" |
| 225 | style="@style/FilterShowBottomButton" |
| 226 | android:src="@drawable/filtershow_button_colors_contrast" |
| 227 | android:text="@string/vibrance" /> |
| 228 | |
| 229 | <com.android.gallery3d.filtershow.ui.ImageButtonTitle |
| 230 | android:id="@+id/contrastButton" |
| 231 | style="@style/FilterShowBottomButton" |
| 232 | android:src="@drawable/filtershow_button_colors_contrast" |
| 233 | android:text="@string/contrast" /> |
| 234 | |
| 235 | <com.android.gallery3d.filtershow.ui.ImageButtonTitle |
| 236 | android:id="@+id/saturationButton" |
| 237 | style="@style/FilterShowBottomButton" |
| 238 | android:src="@drawable/filtershow_button_colors_contrast" |
| 239 | android:text="@string/saturation" /> |
| 240 | |
| 241 | <com.android.gallery3d.filtershow.ui.ImageButtonTitle |
John Hoford | 5de46c3 | 2012-09-27 16:34:21 -0700 | [diff] [blame^] | 242 | android:id="@+id/tintButton" |
| 243 | style="@style/FilterShowBottomButton" |
| 244 | android:src="@drawable/filtershow_button_colors_contrast" |
| 245 | android:text="@string/tint" /> |
| 246 | |
| 247 | <com.android.gallery3d.filtershow.ui.ImageButtonTitle |
nicolasroard | 4cc4609 | 2012-09-25 14:27:56 -0700 | [diff] [blame] | 248 | android:id="@+id/exposureButton" |
| 249 | style="@style/FilterShowBottomButton" |
| 250 | android:src="@drawable/filtershow_button_colors_contrast" |
| 251 | android:text="@string/exposure" /> |
| 252 | |
| 253 | <com.android.gallery3d.filtershow.ui.ImageButtonTitle |
| 254 | android:id="@+id/shadowRecoveryButton" |
| 255 | style="@style/FilterShowBottomButton" |
| 256 | android:src="@drawable/filtershow_button_colors_contrast" |
| 257 | android:text="@string/shadow_recovery" /> |
| 258 | </LinearLayout> |
| 259 | </HorizontalScrollView> |
| 260 | |
| 261 | <LinearLayout |
| 262 | android:layout_width="match_parent" |
| 263 | android:layout_height="48dip" |
| 264 | android:background="@color/background_main_toolbar" > |
| 265 | |
| 266 | <ImageButton |
| 267 | android:id="@+id/fxButton" |
| 268 | android:layout_width="wrap_content" |
| 269 | android:layout_height="match_parent" |
| 270 | android:layout_weight="1" |
| 271 | android:background="@drawable/filtershow_button_background" |
| 272 | android:scaleType="centerInside" |
| 273 | android:src="@drawable/filtershow_button_fx" /> |
| 274 | |
| 275 | <ImageButton |
| 276 | android:id="@+id/borderButton" |
| 277 | android:layout_width="wrap_content" |
| 278 | android:layout_height="match_parent" |
| 279 | android:layout_weight="1" |
| 280 | android:background="@drawable/filtershow_button_background" |
| 281 | android:padding="2dip" |
| 282 | android:scaleType="centerInside" |
| 283 | android:src="@drawable/filtershow_button_border" /> |
| 284 | |
| 285 | <ImageButton |
| 286 | android:id="@+id/geometryButton" |
| 287 | android:layout_width="wrap_content" |
| 288 | android:layout_height="match_parent" |
| 289 | android:layout_weight="1" |
| 290 | android:background="@drawable/filtershow_button_background" |
| 291 | android:padding="2dip" |
| 292 | android:scaleType="centerInside" |
| 293 | android:src="@drawable/filtershow_button_geometry" /> |
| 294 | |
| 295 | <ImageButton |
| 296 | android:id="@+id/colorsButton" |
| 297 | android:layout_width="wrap_content" |
| 298 | android:layout_height="match_parent" |
| 299 | android:layout_weight="1" |
| 300 | android:background="@drawable/filtershow_button_background" |
| 301 | android:padding="2dip" |
| 302 | android:scaleType="centerInside" |
| 303 | android:src="@drawable/filtershow_button_colors" /> |
| 304 | </LinearLayout> |
| 305 | </LinearLayout> |
| 306 | |
nicolasroard | 78042f3 | 2012-09-27 20:54:48 -0700 | [diff] [blame] | 307 | </AbsoluteLayout> |