summaryrefslogtreecommitdiffstats
path: root/res/layout/undo_bar.xml
diff options
context:
space:
mode:
authorAngus Kong <shkong@google.com>2013-08-21 18:28:43 -0700
committerAngus Kong <shkong@google.com>2013-08-23 13:17:10 -0700
commit653c43be6e58be54cf2ac3c8efb2d65ac20bd03b (patch)
tree7fab1ec4d4dbc93ab2fa23e05a87f2ec598aaf71 /res/layout/undo_bar.xml
parent00373f8a411042964f019a6355864a4c25fc2238 (diff)
downloadandroid_packages_apps_Camera2-653c43be6e58be54cf2ac3c8efb2d65ac20bd03b.tar.gz
android_packages_apps_Camera2-653c43be6e58be54cf2ac3c8efb2d65ac20bd03b.tar.bz2
android_packages_apps_Camera2-653c43be6e58be54cf2ac3c8efb2d65ac20bd03b.zip
Bring back undo delete confirmation.
Also corrects the default decoding size. bug:10413110 bug:10330214 Change-Id: I45465fdea2320501fd17ac4e35e0f0f54c08cbba
Diffstat (limited to 'res/layout/undo_bar.xml')
-rw-r--r--res/layout/undo_bar.xml37
1 files changed, 37 insertions, 0 deletions
diff --git a/res/layout/undo_bar.xml b/res/layout/undo_bar.xml
new file mode 100644
index 000000000..37701b199
--- /dev/null
+++ b/res/layout/undo_bar.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- This layout is shared by phone and tablet in portrait or landscape orientation. -->
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/camera_undo_deletion_bar"
+ android:orientation="horizontal"
+ android:visibility="gone"
+ android:layout_gravity="bottom"
+ style="@style/UndoBar">
+
+ <TextView android:text="@string/deleted"
+ style="@style/UndoBarTextAppearance"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:gravity="left|center_vertical" />
+
+ <View style="@style/UndoBarSeparator" />
+
+ <TextView android:id="@+id/camera_undo_deletion_button"
+ style="@style/UndoButton"
+ android:text="@string/undo"
+ android:drawableLeft="@drawable/ic_menu_revert_holo_dark"/>
+</LinearLayout>