diff --git a/app/src/main/java/org/isoron/uhabits/activities/BaseScreen.java b/app/src/main/java/org/isoron/uhabits/activities/BaseScreen.java index 561f64f1b..ba34b1714 100644 --- a/app/src/main/java/org/isoron/uhabits/activities/BaseScreen.java +++ b/app/src/main/java/org/isoron/uhabits/activities/BaseScreen.java @@ -84,7 +84,7 @@ public class BaseScreen ColorDrawable drawable = new ColorDrawable(color); actionBar.setBackgroundDrawable(drawable); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) + if (SDK_INT >= LOLLIPOP) { int darkerColor = ColorUtils.mixColors(color, Color.BLACK, 0.75f); activity.getWindow().setStatusBarColor(darkerColor); @@ -94,8 +94,8 @@ public class BaseScreen View view = activity.findViewById(R.id.toolbarShadow); if (view != null) view.setVisibility(View.GONE); -// view = activity.findViewById(R.id.headerShadow); -// if (view != null) view.setVisibility(View.GONE); + view = activity.findViewById(R.id.headerShadow); + if (view != null) view.setVisibility(View.GONE); } } @@ -258,7 +258,7 @@ public class BaseScreen private void setStatusBarColor(int baseColor) { - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) return; + if (SDK_INT < LOLLIPOP) return; int darkerColor = ColorUtils.mixColors(baseColor, Color.BLACK, 0.75f); activity.getWindow().setStatusBarColor(darkerColor); @@ -266,7 +266,7 @@ public class BaseScreen private void setupToolbarElevation(Toolbar toolbar) { - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) return; + if (SDK_INT < LOLLIPOP) return; toolbar.setElevation(InterfaceUtils.dpToPixels(activity, 2)); diff --git a/app/src/main/res/layout/about.xml b/app/src/main/res/layout/about.xml index 7fa3ddb86..8d2903ebe 100644 --- a/app/src/main/res/layout/about.xml +++ b/app/src/main/res/layout/about.xml @@ -245,6 +245,7 @@ + style="@style/ToolbarShadow" + android:layout_below="@id/toolbar"/> diff --git a/app/src/main/res/layout/list_habits.xml b/app/src/main/res/layout/list_habits.xml index 239795117..3515790a4 100644 --- a/app/src/main/res/layout/list_habits.xml +++ b/app/src/main/res/layout/list_habits.xml @@ -88,4 +88,9 @@ android:layout_below="@id/toolbar" style="@style/ToolbarShadow"/> + + \ No newline at end of file diff --git a/app/src/main/res/layout/show_habit.xml b/app/src/main/res/layout/show_habit.xml index 5a760b904..9defc60d1 100644 --- a/app/src/main/res/layout/show_habit.xml +++ b/app/src/main/res/layout/show_habit.xml @@ -17,7 +17,7 @@ ~ with this program. If not, see . --> - + app:popupTheme="?toolbarPopupTheme" + android:layout_alignParentTop="true"/> + + + + style="@style/ToolbarShadow" + android:layout_below="@id/toolbar"/> - - - + diff --git a/app/src/main/res/layout/show_habit_inner.xml b/app/src/main/res/layout/show_habit_inner.xml index 4199e6b95..67b96a76f 100644 --- a/app/src/main/res/layout/show_habit_inner.xml +++ b/app/src/main/res/layout/show_habit_inner.xml @@ -23,6 +23,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="wrap_content" + android:layout_below="@id/toolbar" android:background="?windowBackgroundColor" android:clipToPadding="false" android:fillViewport="true" @@ -36,9 +37,9 @@ android:id="@+id/subtitleCard" style="@style/ShowHabit.Subtitle"/> - - - + - - - - -6dp - \ No newline at end of file diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 51147ef4c..bb938b840 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -29,6 +29,6 @@ 12sp 10sp 160dp - -10dp + -6dp 55dp \ No newline at end of file diff --git a/app/src/main/res/values/styles_list_habits.xml b/app/src/main/res/values/styles_list_habits.xml index 31bd516cf..511fc806b 100644 --- a/app/src/main/res/values/styles_list_habits.xml +++ b/app/src/main/res/values/styles_list_habits.xml @@ -25,8 +25,9 @@