summaryrefslogtreecommitdiffstats
path: root/res/values
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/values
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/values')
-rw-r--r--res/values/colors.xml1
-rw-r--r--res/values/styles.xml35
2 files changed, 34 insertions, 2 deletions
diff --git a/res/values/colors.xml b/res/values/colors.xml
index c1bb52b30..4fe918094 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -68,5 +68,6 @@
<color name="face_detect_start">#80ffffff</color>
<color name="face_detect_success">#8050d060</color>
<color name="face_detect_fail">#80d05060</color>
+ <color name="gray">#FFAAAAAA</color>
</resources>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index e6179e99b..67c53f819 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -253,9 +253,40 @@
<item name="android:enabled">false</item>
<item name="android:scaleType">center</item>
</style>
- <style name="CameraControls">
+ <style name="CameraControls">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">match_parent</item>
</style>
-
+ <style name="UndoBar">
+ <item name="android:layout_marginLeft">4dp</item>
+ <item name="android:layout_marginRight">4dp</item>
+ <item name="android:paddingLeft">16dp</item>
+ <item name="android:layout_width">match_parent</item>
+ <item name="android:layout_height">48dp</item>
+ <item name="android:layout_gravity">bottom</item>
+ <item name="android:background">@drawable/panel_undo_holo</item>
+ </style>
+ <style name="UndoBarTextAppearance">
+ <item name="android:textSize">16sp</item>
+ <item name="android:textColor">@android:color/white</item>
+ </style>
+ <style name="UndoBarSeparator">
+ <item name="android:background">@color/gray</item>
+ <item name="android:layout_width">1dp</item>
+ <item name="android:layout_height">match_parent</item>
+ <item name="android:layout_marginTop">10dp</item>
+ <item name="android:layout_marginBottom">10dp</item>
+ <item name="android:paddingRight">12dp</item>
+ </style>
+ <style name="UndoButton">
+ <item name="android:layout_width">wrap_content</item>
+ <item name="android:layout_height">match_parent</item>
+ <item name="android:paddingRight">16dp</item>
+ <item name="android:textSize">12sp</item>
+ <item name="android:gravity">center_vertical</item>
+ <item name="android:textStyle">bold</item>
+ <item name="android:textColor">@color/gray</item>
+ <item name="android:drawablePadding">8dp</item>
+ <item name="android:background">@drawable/bg_pressed</item>
+ </style>
</resources>