]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/account_summary_row.xml
account list: add hollow trailing item
[mobile-ledger.git] / app / src / main / res / layout / account_summary_row.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3
4 <!--
5   ~ Copyright © 2019 Damyan Ivanov.
6   ~ This file is part of Mobile-Ledger.
7   ~ Mobile-Ledger is free software: you can distribute it and/or modify it
8   ~ under the term of the GNU General Public License as published by
9   ~ the Free Software Foundation, either version 3 of the License, or
10   ~ (at your opinion), any later version.
11   ~
12   ~ Mobile-Ledger is distributed in the hope that it will be useful,
13   ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
14   ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15   ~ GNU General Public License terms for details.
16   ~
17   ~ You should have received a copy of the GNU General Public License
18   ~ along with Mobile-Ledger. If not, see <https://www.gnu.org/licenses/>.
19   -->
20
21 <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
22     xmlns:app="http://schemas.android.com/apk/res-auto"
23     xmlns:tools="http://schemas.android.com/tools"
24     android:layout_width="match_parent"
25     android:layout_height="wrap_content"
26     tools:showIn="@id/account_root">
27
28     <LinearLayout
29         android:id="@+id/account_summary_row"
30         android:layout_width="match_parent"
31         android:layout_height="wrap_content"
32         android:gravity="center_vertical"
33         android:minHeight="?attr/android:actionBarSize"
34         android:orientation="horizontal"
35         android:paddingStart="8dp"
36         android:paddingEnd="8dp"
37         app:layout_constraintBottom_toBottomOf="parent"
38         app:layout_constraintEnd_toEndOf="parent"
39         app:layout_constraintStart_toStartOf="parent"
40         app:layout_constraintTop_toTopOf="parent">
41
42         <CheckBox
43             android:id="@+id/account_row_check"
44             android:layout_width="wrap_content"
45             android:layout_height="match_parent"
46             android:button="@drawable/checkbox_star_black" />
47
48         <TextView
49             android:id="@+id/account_row_acc_name"
50             style="@style/account_summary_account_name"
51             android:text="Account name, a really long one. A very very very long one. It may even spawn on more than two lines -- three, four or more."
52             tools:ignore="HardcodedText" />
53
54         <TextView
55             android:id="@+id/account_row_acc_amounts"
56             style="@style/account_summary_amounts"
57             android:text="123,45\n678,90"
58             tools:ignore="HardcodedText" />
59     </LinearLayout>
60
61     <View
62         android:id="@+id/account_summary_trailer"
63         android:layout_width="match_parent"
64         android:layout_height="80dp"
65         app:layout_constraintBottom_toBottomOf="parent"
66         app:layout_constraintEnd_toEndOf="parent"
67         app:layout_constraintStart_toStartOf="parent"
68         app:layout_constraintTop_toTopOf="parent" />
69 </android.support.constraint.ConstraintLayout>