From 4d7b79c0fb4471736d715fc3ee6cb98692859c57 Mon Sep 17 00:00:00 2001 From: bilgehan kalkan Date: Wed, 11 Dec 2019 16:20:51 +0300 Subject: [PATCH] Move hardcoded color into colors.xml. --- libraries/dialogs/src/main/res/layout/fragment_dialog.xml | 4 ++-- libraries/dialogs/src/main/res/values/colors.xml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 libraries/dialogs/src/main/res/values/colors.xml diff --git a/libraries/dialogs/src/main/res/layout/fragment_dialog.xml b/libraries/dialogs/src/main/res/layout/fragment_dialog.xml index ccc39827..664ae645 100644 --- a/libraries/dialogs/src/main/res/layout/fragment_dialog.xml +++ b/libraries/dialogs/src/main/res/layout/fragment_dialog.xml @@ -25,7 +25,7 @@ android:id="@+id/viewTitleBackground" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - android:background="#f5f5f5" + android:background="@color/dialogs_gray" android:focusableInTouchMode="true" android:paddingStart="@dimen/dialogs_margin_outer" android:paddingEnd="@dimen/dialogs_margin_outer"> @@ -96,7 +96,7 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/dialogs_margin_inner" - android:background="#f5f5f5" + android:background="@color/dialogs_gray" android:hint="@{viewState.searchHint}" android:paddingStart="@dimen/dialogs_margin_inner" android:paddingTop="@dimen/dialogs_margin_inner" diff --git a/libraries/dialogs/src/main/res/values/colors.xml b/libraries/dialogs/src/main/res/values/colors.xml new file mode 100644 index 00000000..0b063d33 --- /dev/null +++ b/libraries/dialogs/src/main/res/values/colors.xml @@ -0,0 +1,5 @@ + + + + #f5f5f5 +