Skip to content

Commit

Permalink
Move hardcoded color into colors.xml.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilgehankalkan committed Dec 11, 2019
1 parent 6a08daa commit 4d7b79c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/dialogs/src/main/res/layout/fragment_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -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"
Expand Down
5 changes: 5 additions & 0 deletions libraries/dialogs/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<color name="dialogs_gray">#f5f5f5</color>
</resources>

0 comments on commit 4d7b79c

Please sign in to comment.