From cda29dd90442d0ecfc56437683ae5b74e54cb4f9 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 20 Jul 2016 21:03:48 +0200 Subject: [PATCH] use resources instead of some hardcoded values --- app/src/main/res/layout/directory_item.xml | 14 +++++++------- app/src/main/res/values/colors.xml | 2 +- app/src/main/res/values/dimens.xml | 2 ++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/src/main/res/layout/directory_item.xml b/app/src/main/res/layout/directory_item.xml index 1c982eca6..d24eb3186 100644 --- a/app/src/main/res/layout/directory_item.xml +++ b/app/src/main/res/layout/directory_item.xml @@ -12,24 +12,24 @@ android:layout_width="match_parent" android:layout_height="@dimen/tmb_shadow_height" android:layout_alignParentBottom="true" - android:background="#55000000" - android:paddingBottom="4dp" - android:paddingLeft="8dp" - android:paddingRight="8dp" - android:paddingTop="4dp"> + android:background="@color/actionbar_grey" + android:paddingBottom="@dimen/small_padding" + android:paddingLeft="@dimen/medium_padding" + android:paddingRight="@dimen/medium_padding" + android:paddingTop="@dimen/small_padding"> diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index da39b3667..a00e2ebf5 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -6,5 +6,5 @@ #33ff6f00 #99ff6f00 #ff222222 - #66000000 + #55000000 diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 36e6bfd32..5c479a54e 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -1,5 +1,7 @@ 16dp + 4dp + 8dp 150dp 100dp 40dp