]> git.ktnx.net Git - mobile-ledger-staging.git/blobdiff - app/src/main/res/layout/transaction_list_row.xml
more material styles
[mobile-ledger-staging.git] / app / src / main / res / layout / transaction_list_row.xml
index 66cca2b866a6b2aa3fe4023ea4543f6dfbadd903..966d9d28d5ad76f5384f3918a3a0201e0fc9f30a 100644 (file)
   ~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
   -->
 
-<androidx.appcompat.widget.ContentFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<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:visibility="visible"
         app:cardCornerRadius="16dp"
         app:cardElevation="4dp"
-        app:cardUseCompatPadding="false"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toStartOf="parent"
-        app:layout_goneMarginBottom="8dp">
+        app:cardUseCompatPadding="false">
 
         <androidx.constraintlayout.widget.ConstraintLayout
             android:id="@+id/transaction_row"
                     android:layout_height="wrap_content"
                     android:layout_weight="5"
                     android:text="---."
-                    android:textStyle="bold"
+                    android:textAppearance="@android:style/TextAppearance.Material.Medium"
+                    android:textColor="?textColor"
                     tools:ignore="HardcodedText" />
 
             </LinearLayout>
 
-            <LinearLayout
+            <View
                 android:id="@+id/transaction_row_header_border"
                 android:layout_width="match_parent"
-                android:layout_height="wrap_content"
+                android:layout_height="2dp"
                 android:alpha="0.3"
                 android:background="@drawable/dashed_border_1dp"
-                android:minHeight="2dp"
-                android:orientation="horizontal"
+                android:height="2dp"
                 app:layout_constraintEnd_toEndOf="parent"
                 app:layout_constraintStart_toStartOf="parent"
                 app:layout_constraintTop_toBottomOf="@+id/transaction_row_head" />
         android:layout_height="wrap_content"
         android:layout_marginStart="8dp"
         android:layout_marginTop="16dp"
-        android:layout_marginEnd="8dp"
-        android:foregroundGravity="center_vertical"
-        android:orientation="horizontal">
+        android:layout_marginEnd="8dp">
 
         <TextView
             android:id="@+id/transaction_delimiter_month"
             android:paddingStart="4dp"
             android:paddingEnd="4dp"
             android:text="---------"
-            android:textColor="@android:color/white"
+            android:textColor="?android:attr/colorBackground"
             android:textStyle="bold"
             app:layout_constraintStart_toStartOf="parent"
             tools:ignore="HardcodedText" />
             android:paddingStart="4dp"
             android:paddingEnd="4dp"
             android:text="--.--.----"
-            android:textColor="@android:color/white"
+            android:textColor="?android:attr/colorBackground"
             android:textStyle="bold"
             app:layout_constraintEnd_toEndOf="parent"
             tools:ignore="HardcodedText" />
 
     </androidx.constraintlayout.widget.ConstraintLayout>
 
-</androidx.appcompat.widget.ContentFrameLayout>
\ No newline at end of file
+</FrameLayout>
\ No newline at end of file