From 6bb3b08281651b997526a9e3edffb2ec31a0096d Mon Sep 17 00:00:00 2001 From: Dave Kover <kover@cyngn.com> Date: Wed, 3 Feb 2016 17:15:34 -0800 Subject: 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 --- packages/DocumentsUI/res/layout/activity.xml | 2 +- packages/DocumentsUI/res/values/cm_dimens.xml | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 packages/DocumentsUI/res/values/cm_dimens.xml (limited to 'packages/DocumentsUI') 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> -- cgit v1.1