From 5259a492f8d82425e87306b1757a03b4f697b51c Mon Sep 17 00:00:00 2001 From: Jakob Nixdorf Date: Wed, 4 Apr 2018 13:08:33 +0200 Subject: [PATCH] Make all card styles more consistent --- app/src/main/res/layout/component_card.xml | 2 ++ app/src/main/res/layout/content_main.xml | 3 +++ app/src/main/res/layout/fragment_about.xml | 31 +++++++++++++--------- app/src/main/res/values/dimens.xml | 2 +- app/src/main/res/values/styles.xml | 20 ++++++++++++-- 5 files changed, 42 insertions(+), 16 deletions(-) diff --git a/app/src/main/res/layout/component_card.xml b/app/src/main/res/layout/component_card.xml index 56043705..df849cce 100644 --- a/app/src/main/res/layout/component_card.xml +++ b/app/src/main/res/layout/component_card.xml @@ -5,6 +5,8 @@ android:id="@+id/card_view" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_marginTop="@dimen/activity_margin_xsmall" + android:layout_marginBottom="@dimen/activity_margin_xsmall" app:contentPadding="0dp" style="?attr/cardStyle"> diff --git a/app/src/main/res/layout/content_main.xml b/app/src/main/res/layout/content_main.xml index b4fa98a6..ac0c611c 100644 --- a/app/src/main/res/layout/content_main.xml +++ b/app/src/main/res/layout/content_main.xml @@ -19,6 +19,9 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentStart="true" + android:paddingStart="@dimen/activity_margin_small" + android:paddingEnd="@dimen/activity_margin_small" + android:paddingTop="@dimen/activity_margin_xsmall" android:paddingBottom="@dimen/fab_recyclerview_padding" android:clipToPadding="false" /> diff --git a/app/src/main/res/layout/fragment_about.xml b/app/src/main/res/layout/fragment_about.xml index bc72b2f5..4d723e19 100644 --- a/app/src/main/res/layout/fragment_about.xml +++ b/app/src/main/res/layout/fragment_about.xml @@ -1,22 +1,24 @@ - @@ -336,8 +340,8 @@ @@ -394,8 +398,8 @@ @@ -460,7 +464,8 @@ - + diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 6bb10726..635094e0 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -1,5 +1,6 @@ + 4dp 8dp 16dp 24dp @@ -8,7 +9,6 @@ 16dp - 2dp 14dp 46dp diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 9e6e6734..4b513e8b 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -27,6 +27,12 @@ @android:color/transparent @style/CardViewStyle + + @color/cardview_light_background + @color/about_libraries_text_openSource + @color/about_libraries_text_openSource + @color/about_libraries_dividerDark_openSource + @color/about_libraries_dividerLight_openSource @@ -53,6 +57,12 @@ @color/paypal_light @style/CardViewStyle + + @color/cardview_dark_background + @color/about_libraries_text_openSource_dark + @color/about_libraries_text_openSource_dark + @color/about_libraries_dividerDark_openSource_dark + @color/about_libraries_dividerLight_openSource_dark