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.
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.
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/>.
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 android:layout_width="match_parent"
21 android:layout_height="wrap_content"
22 android:minHeight="@dimen/thumb_row_height"
23 android:padding="@dimen/half_text_margin"
27 android:id="@+id/account_name"
28 android:layout_width="wrap_content"
29 android:layout_height="wrap_content"
30 android:text="TextView with a very long account name. a really long account name that needs to one\non two lines"
31 android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
34 android:id="@+id/amounts"
35 android:layout_width="wrap_content"
36 android:layout_height="wrap_content"
37 android:layout_marginStart="@dimen/text_margin"
39 android:text="LongCurrencyName 1 234 567,89"
40 android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
41 android:textColor="?commentColor"
42 app:layout_goneMarginStart="0dp"
44 <androidx.constraintlayout.helper.widget.Flow
45 android:layout_width="match_parent"
46 android:layout_height="wrap_content"
47 app:constraint_referenced_ids="account_name,amounts"
48 app:flow_firstHorizontalBias="0"
49 app:flow_firstHorizontalStyle="spread_inside"
50 app:flow_horizontalBias="1"
51 app:flow_verticalStyle="spread_inside"
52 app:flow_wrapMode="chain"
53 app:layout_constraintStart_toStartOf="parent"
54 app:layout_constraintTop_toTopOf="parent"
56 </androidx.constraintlayout.widget.ConstraintLayout>