summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Kover <dkover@cyngn.com>2015-08-21 14:42:46 -0700
committerDave Kover <kover@cyngn.com>2015-09-10 15:16:47 -0700
commit84ae2f07bb19dbe4d963012ba02f0512442ef922 (patch)
tree73e1c88b826aaa91ab3a67f1553f79ee93c40cc2
parent6ea8d032b7e673286c4e21181ced18f4f5c69c04 (diff)
downloadandroid_packages_apps_DeskClock-84ae2f07bb19dbe4d963012ba02f0512442ef922.tar.gz
android_packages_apps_DeskClock-84ae2f07bb19dbe4d963012ba02f0512442ef922.tar.bz2
android_packages_apps_DeskClock-84ae2f07bb19dbe4d963012ba02f0512442ef922.zip
Expose FAB elevation value for themes.
FAB elevation value was hardcoded in layout. Expose to a value in cm_dimens. Ticket: CYNGNOS-971 Change-Id: I72685230a612987ccc60ca404d520220c52dac7c (cherry picked from commit a01047d4ecd19ddb78f74457ea310ff1a8122929)
-rw-r--r--res/layout/desk_clock.xml2
-rw-r--r--res/values/cm_dimens.xml21
2 files changed, 22 insertions, 1 deletions
diff --git a/res/layout/desk_clock.xml b/res/layout/desk_clock.xml
index 13cb78394..218c8056b 100644
--- a/res/layout/desk_clock.xml
+++ b/res/layout/desk_clock.xml
@@ -60,7 +60,7 @@
android:layout_margin="@dimen/footer_button_layout_margin"
android:layout_gravity="center_horizontal"
android:background="@drawable/floating_action_button"
- android:elevation="8dip"
+ android:elevation="@dimen/fab_elevation"
android:scaleType="center"
android:contentDescription="@null" />
diff --git a/res/values/cm_dimens.xml b/res/values/cm_dimens.xml
new file mode 100644
index 000000000..316a4fbf4
--- /dev/null
+++ b/res/values/cm_dimens.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2012-2015 The CyanogenMod 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.
+-->
+<resources>
+
+ <dimen name="fab_elevation">8dip</dimen>
+
+</resources> \ No newline at end of file