From df7a8666172d78378854e5f7e1a549a8c694a1be Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Sat, 5 Oct 2019 22:51:21 +0200 Subject: [PATCH] Fixed widget order Content mustn't overlay appbar --- app/src/main/res/layout/activity_main_md2.xml | 13 +++++-------- app/src/main/res/layout/fragment_home_md2.xml | 2 +- app/src/main/res/values-night/styles_md2.xml | 4 ++-- app/src/main/res/values/dimens.xml | 2 ++ app/src/main/res/values/styles_md2.xml | 6 +++--- app/src/main/res/values/styles_md2_impl.xml | 3 ++- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/src/main/res/layout/activity_main_md2.xml b/app/src/main/res/layout/activity_main_md2.xml index 06bff9461..1fe7d72de 100644 --- a/app/src/main/res/layout/activity_main_md2.xml +++ b/app/src/main/res/layout/activity_main_md2.xml @@ -19,11 +19,15 @@ android:paddingRight="@{viewModel.insets.right}" tools:ignore="RtlHardcoded"> + + @@ -31,7 +35,6 @@ android:id="@+id/main_toolbar" style="?styleToolbar" android:layout_width="match_parent" - android:layout_height="?actionBarSize" app:layout_constraintBottom_toBottomOf="parent" app:layout_scrollFlags="noScroll" tools:title="Home" /> @@ -44,12 +47,6 @@ - - diff --git a/app/src/main/res/values-night/styles_md2.xml b/app/src/main/res/values-night/styles_md2.xml index 45fb2240c..8ea45210e 100644 --- a/app/src/main/res/values-night/styles_md2.xml +++ b/app/src/main/res/values-night/styles_md2.xml @@ -7,9 +7,9 @@ #00C853 #8000C853 #0D0D0D - #0DFFFFFF + #D9191919 #F2F2F2 - #80F2F2F2 + #D9E6E6E6 #F2F2F2 ?colorOnSurface #CC0047 diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 924237a01..1f6e3b328 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -19,4 +19,6 @@ 80dp + + 56dp \ No newline at end of file diff --git a/app/src/main/res/values/styles_md2.xml b/app/src/main/res/values/styles_md2.xml index 8b68efc48..a260074f6 100644 --- a/app/src/main/res/values/styles_md2.xml +++ b/app/src/main/res/values/styles_md2.xml @@ -23,7 +23,7 @@ @drawable/bg_selectable - 60dp + @dimen/internal_action_bar_size @style/WidgetFoundation.Appbar @@ -84,9 +84,9 @@ #00C853 #8000C853 #F2F2F2 - #0D000000 + #D9E6E6E6 #F2F2F2 - #80F2F2F2 + #D9E6E6E6 #F2F2F2 #F2F2F2 #CC0047 diff --git a/app/src/main/res/values/styles_md2_impl.xml b/app/src/main/res/values/styles_md2_impl.xml index 4439d6dbf..22f6373ff 100644 --- a/app/src/main/res/values/styles_md2_impl.xml +++ b/app/src/main/res/values/styles_md2_impl.xml @@ -9,7 +9,7 @@ variant. Make sure to use style referenced by attribute defined it attrs.xml.