]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/transaction_delimiter.xml
more pronounced day/month delimiters in the transaction list
[mobile-ledger.git] / app / src / main / res / layout / transaction_delimiter.xml
1 <?xml version="1.0" encoding="utf-8"?><!--
2   ~ Copyright © 2021 Damyan Ivanov.
3   ~ This file is part of MoLe.
4   ~ MoLe is free software: you can distribute it and/or modify it
5   ~ under the term of the GNU General Public License as published by
6   ~ the Free Software Foundation, either version 3 of the License, or
7   ~ (at your opinion), any later version.
8   ~
9   ~ MoLe is distributed in the hope that it will be useful,
10   ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
11   ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12   ~ GNU General Public License terms for details.
13   ~
14   ~ You should have received a copy of the GNU General Public License
15   ~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
16   -->
17
18 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
19     xmlns:app="http://schemas.android.com/apk/res-auto"
20     xmlns:tools="http://schemas.android.com/tools"
21     android:id="@+id/transaction_delimiter"
22     android:layout_width="match_parent"
23     android:layout_height="wrap_content"
24     android:layout_marginStart="8dp"
25     android:layout_marginTop="16dp"
26     android:layout_marginEnd="8dp"
27     >
28
29     <TextView
30         android:id="@+id/transaction_delimiter_month"
31         android:layout_width="wrap_content"
32         android:layout_height="match_parent"
33         android:layout_marginHorizontal="4dp"
34         android:text="---------"
35         android:textColor="?colorPrimary"
36         android:textStyle="bold"
37         app:layout_constraintEnd_toEndOf="parent"
38         tools:ignore="HardcodedText"
39         />
40
41     <TextView
42         android:id="@+id/transaction_delimiter_date"
43         android:layout_width="wrap_content"
44         android:layout_height="match_parent"
45         android:layout_marginHorizontal="4dp"
46         android:text="--.--.----"
47         android:textColor="?colorPrimary"
48         android:textStyle="bold"
49         app:layout_constraintStart_toStartOf="parent"
50         tools:ignore="HardcodedText"
51         />
52
53     <View
54         android:id="@+id/transaction_delimiter_thick"
55         android:layout_width="0dp"
56         android:layout_height="1dp"
57         android:layout_marginHorizontal="16dp"
58         android:background="?colorPrimary"
59         app:layout_constraintBottom_toBottomOf="parent"
60         app:layout_constraintEnd_toStartOf="@id/transaction_delimiter_month"
61         app:layout_constraintStart_toEndOf="@id/transaction_delimiter_date"
62         app:layout_constraintTop_toTopOf="parent"
63         />
64
65 </androidx.constraintlayout.widget.ConstraintLayout>