]> git.ktnx.net Git - mobile-ledger-staging.git/blobdiff - app/src/main/res/layout/transaction_list_row.xml
restore transaction list card margins, default elevation
[mobile-ledger-staging.git] / app / src / main / res / layout / transaction_list_row.xml
index e2d0013287a2782bbd9a32089acac8b2de0f9ef8..a3afe2f78460acfbcaab5256950f7de181199135 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 
 <!--
-  ~ Copyright © 2019 Damyan Ivanov.
+  ~ Copyright © 2020 Damyan Ivanov.
   ~ This file is part of MoLe.
   ~ MoLe is free software: you can distribute it and/or modify it
   ~ under the term of the GNU General Public License as published by
 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
     xmlns:tools="http://schemas.android.com/tools"
-    android:measureAllChildren="false"
     android:layout_width="match_parent"
-    android:layout_height="wrap_content">
+    android:layout_height="wrap_content"
+    android:measureAllChildren="false"
+    >
 
     <com.google.android.material.card.MaterialCardView
         android:id="@+id/transaction_card_view"
         style="@style/Widget.MaterialComponents.CardView"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:layout_marginHorizontal="@dimen/activity_horizontal_margin"
-        android:layout_marginVertical="1dp"
+        android:layout_margin="8dp"
         android:visibility="visible"
         app:cardCornerRadius="4dp"
-        app:cardElevation="2dp"
         app:cardUseCompatPadding="false"
         >
 
@@ -44,7 +43,8 @@
             android:gravity="center_vertical"
             android:minHeight="36dp"
             android:orientation="horizontal"
-            android:padding="8dp">
+            android:padding="8dp"
+            >
 
             <LinearLayout
                 android:id="@+id/transaction_row_head"
@@ -53,7 +53,8 @@
                 android:orientation="vertical"
                 app:layout_constraintEnd_toEndOf="parent"
                 app:layout_constraintStart_toStartOf="parent"
-                app:layout_constraintTop_toTopOf="parent">
+                app:layout_constraintTop_toTopOf="parent"
+                >
 
                 <TextView
                     android:id="@+id/transaction_row_description"
@@ -87,8 +88,8 @@
                 app:layout_constraintTop_toBottomOf="@+id/transaction_row_head"
                 >
 
-                <include layout="@layout/transaction_list_row_accounts_table_row"/>
-                <include layout="@layout/transaction_list_row_accounts_table_row"/>
+                <include layout="@layout/transaction_list_row_accounts_table_row" />
+                <include layout="@layout/transaction_list_row_accounts_table_row" />
 
             </LinearLayout>
 
         android:layout_height="wrap_content"
         android:layout_marginStart="8dp"
         android:layout_marginTop="16dp"
-        android:layout_marginEnd="8dp">
+        android:layout_marginEnd="8dp"
+        >
 
         <TextView
             android:id="@+id/transaction_delimiter_month"
             android:textColor="?colorPrimary"
             android:textStyle="bold"
             app:layout_constraintEnd_toEndOf="parent"
-            tools:ignore="HardcodedText" />
+            tools:ignore="HardcodedText"
+            />
 
         <TextView
             android:id="@+id/transaction_delimiter_date"
             android:textColor="?colorPrimary"
             android:textStyle="bold"
             app:layout_constraintStart_toStartOf="parent"
-            tools:ignore="HardcodedText" />
+            tools:ignore="HardcodedText"
+            />
 
         <View
             android:id="@+id/transaction_delimiter_thick"