]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/transaction_list_row_accounts_table_row.xml
hint account name wrapping after the colon to help long accounts
[mobile-ledger.git] / app / src / main / res / layout / transaction_list_row_accounts_table_row.xml
1 <?xml version="1.0" encoding="utf-8"?><!--
2   ~ Copyright © 2020 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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19     xmlns:tools="http://schemas.android.com/tools"
20     android:layout_width="match_parent"
21     android:layout_height="wrap_content"
22     android:gravity="center_vertical"
23     android:orientation="horizontal"
24     >
25
26     <LinearLayout
27         android:layout_width="0dp"
28         android:layout_height="wrap_content"
29         android:layout_weight="5"
30         android:orientation="vertical"
31         >
32         <TextView
33             android:id="@+id/dummy_text"
34             android:layout_width="wrap_content"
35             android:layout_height="wrap_content"
36             android:visibility="gone"
37             />
38
39         <TextView
40             android:id="@+id/transaction_list_acc_row_acc_name"
41             android:layout_width="match_parent"
42             android:layout_height="wrap_content"
43             android:breakStrategy="high_quality"
44             android:textAlignment="viewStart"
45             android:textAppearance="@android:style/TextAppearance.Material.Small"
46             tools:ignore="HardcodedText"
47             android:hyphenationFrequency="full"
48             android:text="one:very:long:account:name:that:needs:to:wrap:to:more:tnan:one:line:two:would:be:nice:but:the:more:the:better:and:the:better:"
49             />
50
51         <TextView
52             android:id="@+id/transaction_list_acc_row_acc_comment"
53             android:layout_width="match_parent"
54             android:layout_height="wrap_content"
55             android:layout_marginStart="8dp"
56             android:layout_marginTop="-4dp"
57             android:text="account comment"
58             android:textAlignment="viewStart"
59             style="@style/transaction_list_comment"
60             tools:ignore="HardcodedText,RtlSymmetry"
61             />
62     </LinearLayout>
63
64     <TextView
65         android:id="@+id/transaction_list_acc_row_acc_amount"
66         android:layout_width="wrap_content"
67         android:layout_height="wrap_content"
68         android:layout_gravity="top|end"
69         android:layout_marginEnd="0dp"
70         android:minWidth="60dp"
71         android:text="---,--"
72         android:textAlignment="viewEnd"
73         android:textAppearance="@android:style/TextAppearance.Material.Small"
74         tools:ignore="HardcodedText" />
75 </LinearLayout>