summaryrefslogtreecommitdiffstats
path: root/packages/DocumentsUI
diff options
context:
space:
mode:
authorDave Kover <kover@cyngn.com>2016-02-03 17:15:34 -0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-02-08 14:59:57 -0800
commit6bb3b08281651b997526a9e3edffb2ec31a0096d (patch)
tree4d6c07313e2d8aaadeced4080499ca9adc99b4ff /packages/DocumentsUI
parent4226d77204e7e3529c6066b21ddda041f376de7e (diff)
downloadframeworks_base-6bb3b08281651b997526a9e3edffb2ec31a0096d.zip
frameworks_base-6bb3b08281651b997526a9e3edffb2ec31a0096d.tar.gz
frameworks_base-6bb3b08281651b997526a9e3edffb2ec31a0096d.tar.bz2
DocumentsUI: Expose appbar elevation value.
A theme might want their action bars to not have an elevation, so expose the elevation to a value that can be overridden. Change-Id: I937a685d748cf41ade6eb32dd1625e16b75455c5 Ticket: CYNGNOS-1870
Diffstat (limited to 'packages/DocumentsUI')
-rw-r--r--packages/DocumentsUI/res/layout/activity.xml2
-rw-r--r--packages/DocumentsUI/res/values/cm_dimens.xml21
2 files changed, 22 insertions, 1 deletions
diff --git a/packages/DocumentsUI/res/layout/activity.xml b/packages/DocumentsUI/res/layout/activity.xml
index 3de76d0..8c35e54 100644
--- a/packages/DocumentsUI/res/layout/activity.xml
+++ b/packages/DocumentsUI/res/layout/activity.xml
@@ -29,7 +29,7 @@
android:layout_width="match_parent"
android:layout_height="?android:attr/actionBarSize"
android:background="?android:attr/colorPrimary"
- android:elevation="8dp"
+ android:elevation="@dimen/toolbar_elevation"
android:theme="?android:attr/actionBarTheme">
<Spinner
diff --git a/packages/DocumentsUI/res/values/cm_dimens.xml b/packages/DocumentsUI/res/values/cm_dimens.xml
new file mode 100644
index 0000000..7388a4f
--- /dev/null
+++ b/packages/DocumentsUI/res/values/cm_dimens.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2016 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="toolbar_elevation">8dp</dimen>
+
+</resources>