summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorDoris Liu <tianliu@google.com>2013-06-04 15:57:19 -0700
committerDoris Liu <tianliu@google.com>2013-06-05 16:25:34 -0700
commitae56dacc8a278cd3dc74995f630b8044af444923 (patch)
tree5fe2e73fed1ab0f78cbf5531d284e1cf48b2193c /res/layout
parent5311bd7a2f0d2697a0f9a38029a74f0f94c47d19 (diff)
downloadandroid_packages_apps_Snap-ae56dacc8a278cd3dc74995f630b8044af444923.tar.gz
android_packages_apps_Snap-ae56dacc8a278cd3dc74995f630b8044af444923.tar.bz2
android_packages_apps_Snap-ae56dacc8a278cd3dc74995f630b8044af444923.zip
Add a layout for undo bar
Change-Id: Id795f00c8ca5f147f6aae8c1f9cba4e1da1e5b20
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/undo_bar.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/res/layout/undo_bar.xml b/res/layout/undo_bar.xml
new file mode 100644
index 000000000..33ec91d85
--- /dev/null
+++ b/res/layout/undo_bar.xml
@@ -0,0 +1,31 @@
+<?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:orientation="horizontal"
+ 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/undo_button"
+ style="@style/UndoButton"
+ android:text="@string/undo"
+ android:drawableLeft="@drawable/ic_menu_revert_holo_dark"/>
+</LinearLayout>