]> git.ktnx.net Git - mobile-ledger.git/commitdiff
use a fixed app background, helps the fading gradient
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 15 May 2020 08:16:04 +0000 (11:16 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 16 May 2020 10:34:35 +0000 (13:34 +0300)
used in the case of multiple (4+) currencies for a given account in the
account summary

app/src/main/res/drawable-anydpi-v21/fade_down_white.xml
app/src/main/res/layout/account_summary_row.xml
app/src/main/res/layout/main_app_layout.xml
app/src/main/res/values/colors.xml

index 63add2910663ac2e2182a0f0412a1c34f4f6e8a5..7b541263eaf10cd5d80f445009fb782e1f6818db 100644 (file)
@@ -17,8 +17,8 @@
 
 <shape xmlns:android="http://schemas.android.com/apk/res/android">
     <gradient
-        android:startColor="#40ffffff"
-        android:endColor="#FFffffff"
+        android:endColor="@color/backgroundColor"
+        android:startColor="@color/backgroundColorTransparent"
         android:angle="270"
         />
 </shape>
\ No newline at end of file
index ca88fe86eaf6a1af7e3c0405b86694963257199a..addf2a2a169a14beff63de29a96160e53fd6ab37 100644 (file)
     <FrameLayout
         android:id="@+id/account_row_amounts_expander_container"
         android:layout_width="0dp"
-        android:layout_height="12sp"
+        android:layout_height="18sp"
         app:layout_constraintStart_toStartOf="@id/account_row_acc_amounts"
         app:layout_constraintEnd_toEndOf="@id/account_row_acc_amounts"
         app:layout_constraintBottom_toBottomOf="@id/account_row_acc_amounts"
         android:background="@drawable/fade_down_white">
 
         <!--<ImageView-->
-            <!--android:layout_gravity="center_vertical|end"-->
-            <!--android:id="@+id/account_row_amounts_expander"-->
-            <!--android:layout_width="20dp"-->
-            <!--android:layout_height="20dp"-->
-            <!--android:background="@drawable/ic_expand_more_black_24dp" />-->
+        <!--android:layout_gravity="center_vertical|end"-->
+        <!--android:id="@+id/account_row_amounts_expander"-->
+        <!--android:layout_width="20dp"-->
+        <!--android:layout_height="20dp"-->
+        <!--android:background="@drawable/ic_expand_more_black_24dp" />-->
 
     </FrameLayout>
 
index 86e918707ad247d628cc18b4c0c3df431038f376..4b778d64ba31c0ca44709f068fda1d657a9c5f58 100644 (file)
@@ -21,6 +21,7 @@
     android:id="@+id/main_app_layout"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
+    android:background="@color/backgroundColor"
     android:orientation="vertical"
     android:theme="@style/AppTheme.AppBarOverlay"
     tools:context=".ui.activity.MainActivity">
index 3bbc35c18d58637014db97695a769a180aec29d9..72b935289410b48add550efc2283e23252f971d7 100644 (file)
@@ -26,4 +26,6 @@
     <color name="header_border">#804a148c</color>
     <color name="error_background">#FFE1E2</color>
     <color name="errorTextColor">#CD1609</color>
+    <color name="backgroundColor">#EEEEEE</color>
+    <color name="backgroundColorTransparent">#00eeeeee</color>
 </resources>