From 1749009d10901ae096710b689f725a9f3e7708cb Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 26 Mar 2018 10:12:36 +0200 Subject: [PATCH] put toolbar elevation in dimen file --- src/main/res/layout/activity_start_conversation.xml | 2 +- src/main/res/layout/toolbar.xml | 2 +- src/main/res/values/dimens.xml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/res/layout/activity_start_conversation.xml b/src/main/res/layout/activity_start_conversation.xml index 71378c0bf..5bc904b7f 100644 --- a/src/main/res/layout/activity_start_conversation.xml +++ b/src/main/res/layout/activity_start_conversation.xml @@ -13,7 +13,7 @@ android:layout_height="wrap_content" android:background="?attr/colorPrimary" android:minHeight="?attr/actionBarSize" - android:elevation="6dp" + android:elevation="@dimen/toolbar_elevation" app:tabMode="fixed" app:tabGravity="fill" app:tabTextColor="@color/white70" diff --git a/src/main/res/layout/toolbar.xml b/src/main/res/layout/toolbar.xml index f6e306ff1..89b029df5 100644 --- a/src/main/res/layout/toolbar.xml +++ b/src/main/res/layout/toolbar.xml @@ -4,7 +4,7 @@ android:layout_height="wrap_content" android:background="?attr/colorPrimary" android:minHeight="?attr/actionBarSize" - android:elevation="4dp" + android:elevation="@dimen/toolbar_elevation" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" app:popupTheme="?popupOverlayStyle" xmlns:android="http://schemas.android.com/apk/res/android" diff --git a/src/main/res/values/dimens.xml b/src/main/res/values/dimens.xml index 143ee59d3..9cacbf79d 100644 --- a/src/main/res/values/dimens.xml +++ b/src/main/res/values/dimens.xml @@ -12,6 +12,8 @@ 32dp 16dp + 4dp + 8dp 96dp