]> git.ktnx.net Git - mobile-ledger.git/commitdiff
drop shadow below the info about list freshness
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 16 Dec 2018 18:01:34 +0000 (18:01 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 16 Dec 2018 18:01:34 +0000 (18:01 +0000)
app/src/main/java/net/ktnx/mobileledger/TransactionListAdapter.java
app/src/main/res/drawable/drop_shadow.xml [new file with mode: 0644]
app/src/main/res/layout/transaction_list_fragment.xml
app/src/main/res/values/colors.xml

index 263aa96e23b896e090e7b79c36be43f9f83ced55..267b759e38889104f3011f127953e9ff0bac6b42 100644 (file)
@@ -76,8 +76,9 @@ class TransactionListAdapter
             }
             else {
                 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) holder.row
-                        .setBackgroundColor(rm.getColor(R.color.drawer_background, ctx.getTheme()));
-                else holder.row.setBackgroundColor(rm.getColor(R.color.drawer_background));
+                        .setBackgroundColor(rm.getColor(R.color.table_row_odd_bg, ctx
+                                .getTheme()));
+                else holder.row.setBackgroundColor(rm.getColor(R.color.table_row_odd_bg));
             }
 
             holder.row.setTag(R.id.POS, position);
diff --git a/app/src/main/res/drawable/drop_shadow.xml b/app/src/main/res/drawable/drop_shadow.xml
new file mode 100644 (file)
index 0000000..01f3b02
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?><!--
+  ~ Copyright © 2018 Damyan Ivanov.
+  ~ This file is part of Mobile-Ledger.
+  ~ Mobile-Ledger is free software: you can distribute it and/or modify it
+  ~ under the term of the GNU General Public License as published by
+  ~ the Free Software Foundation, either version 3 of the License, or
+  ~ (at your opinion), any later version.
+  ~
+  ~ Mobile-Ledger is distributed in the hope that it will be useful,
+  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  ~ GNU General Public License terms for details.
+  ~
+  ~ You should have received a copy of the GNU General Public License
+  ~ along with Mobile-Ledger. If not, see <https://www.gnu.org/licenses/>.
+  -->
+
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <gradient
+        android:startColor="#80000000"
+        android:endColor="#00000000"
+        android:angle="270"
+        />
+</shape>
\ No newline at end of file
index bc9ad5994a022e697664e997b62c880086e5c16f..19bb72fa3d875a213513c573ccd5f9e05c474dec 100644 (file)
             android:text="TextView" />
     </LinearLayout>
 
+    <View
+        android:id="@+id/view"
+        android:layout_width="0dp"
+        android:layout_height="6dp"
+        android:background="@drawable/drop_shadow"
+        app:layout_constraintTop_toBottomOf="@+id/last_update_row" />
+
     <ProgressBar
         android:id="@+id/transaction_progress_bar"
         style="?android:attr/progressBarStyleHorizontal"
index ea7634986290897eae2254912bba08dcfc72950b..7d1c6fa890f5c4b703f29ca9591706215115a977 100644 (file)
@@ -22,4 +22,5 @@
     <color name="colorAccent">#4db6ac</color>
     <color name="table_row_even_bg">#289d29b1</color>
     <color name="drawer_background">#ffffffff</color>
+    <color name="table_row_odd_bg">#28fae0ff</color>
 </resources>