From: Damyan Ivanov Date: Thu, 17 Sep 2020 08:17:17 +0000 (+0000) Subject: better shadow under main header in dark mode X-Git-Tag: v0.15.0~15 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=605837f87d9731e3529fa9be447bbcf7625cb2eb;p=mobile-ledger.git better shadow under main header in dark mode with greater height and darker at the top edge. still black tried with white and it looks very unnatural and like a mistake --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java index bce01de7..1674c029 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java @@ -29,6 +29,7 @@ import android.os.Build; import android.os.Bundle; import android.util.Log; import android.view.View; +import android.view.ViewGroup; import android.view.animation.AnimationUtils; import android.widget.LinearLayout; import android.widget.ProgressBar; @@ -460,7 +461,7 @@ public class MainActivity extends ProfileThemedActivity { updateLastUpdateTextFromDB(); } private void updateLastUpdateDisplay(Date newValue) { - LinearLayout l = findViewById(R.id.transactions_last_update_layout); + ViewGroup l = findViewById(R.id.transactions_last_update_layout); TextView v = findViewById(R.id.transactions_last_update); if (newValue == null) { l.setVisibility(View.INVISIBLE); diff --git a/app/src/main/res/drawable-anydpi/drop_shadow.xml b/app/src/main/res/drawable-anydpi/drop_shadow.xml index 1a37f95c..4eae334e 100644 --- a/app/src/main/res/drawable-anydpi/drop_shadow.xml +++ b/app/src/main/res/drawable-anydpi/drop_shadow.xml @@ -17,8 +17,8 @@ \ No newline at end of file diff --git a/app/src/main/res/layout/main_app_layout.xml b/app/src/main/res/layout/main_app_layout.xml index 784e0b6a..d9f4b426 100644 --- a/app/src/main/res/layout/main_app_layout.xml +++ b/app/src/main/res/layout/main_app_layout.xml @@ -70,32 +70,38 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/toolbar"> - + android:orientation="horizontal" + > - + android:textAppearance="@android:style/TextAppearance.Material.Small" + tools:ignore="HardcodedText" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" + /> + #FFE1E2 #CD1609 + 12dp + #C0000000 + #00000000 diff --git a/app/src/main/res/values/attr.xml b/app/src/main/res/values/attr.xml index 27732050..b3499597 100644 --- a/app/src/main/res/values/attr.xml +++ b/app/src/main/res/values/attr.xml @@ -23,5 +23,7 @@ - + + + \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index c51c46a2..d56120ef 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -39,6 +39,9 @@ #efe7fd #f9f6fe @null + 4dp + #80000000 + #00000000