From d9072bc6499617e6c835ce25579e2ecafe9e4a41 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 21 Dec 2018 19:29:53 +0000 Subject: [PATCH] border under transaction header, other improvements. much better now --- .../main/res/drawable/dashed_border_1dp.xml | 28 +++++++++++++++++ .../res/layout/transaction_list_fragment.xml | 2 +- .../main/res/layout/transaction_list_row.xml | 31 +++++++++++++++---- app/src/main/res/values/colors.xml | 1 + 4 files changed, 55 insertions(+), 7 deletions(-) create mode 100644 app/src/main/res/drawable/dashed_border_1dp.xml diff --git a/app/src/main/res/drawable/dashed_border_1dp.xml b/app/src/main/res/drawable/dashed_border_1dp.xml new file mode 100644 index 00000000..25016e18 --- /dev/null +++ b/app/src/main/res/drawable/dashed_border_1dp.xml @@ -0,0 +1,28 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/transaction_list_fragment.xml b/app/src/main/res/layout/transaction_list_fragment.xml index 09f5611e..b21a10c8 100644 --- a/app/src/main/res/layout/transaction_list_fragment.xml +++ b/app/src/main/res/layout/transaction_list_fragment.xml @@ -20,7 +20,7 @@ xmlns:tools="http://schemas.android.com/tools" android:id="@+id/transaction_list" android:layout_width="match_parent" - android:layout_height="wrap_content" + android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior" app:layout_constraintBottom_toBottomOf="parent" tools:context=".TransactionListActivity"> diff --git a/app/src/main/res/layout/transaction_list_row.xml b/app/src/main/res/layout/transaction_list_row.xml index 692e554b..fb5d44ed 100644 --- a/app/src/main/res/layout/transaction_list_row.xml +++ b/app/src/main/res/layout/transaction_list_row.xml @@ -58,14 +58,26 @@ app:layout_constraintEnd_toEndOf="parent" /> + + + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/transaction_row_header_border"> + android:paddingEnd="0dp"> diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 7d1c6fa8..09da57b3 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -23,4 +23,5 @@ #289d29b1 #ffffffff #28fae0ff + #804a148c -- 2.39.5