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 xmlns:tools="http://schemas.android.com/tools"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent"
23 android:animateLayoutChanges="true"
24 android:minWidth="60dp"
25 android:padding="@dimen/text_margin"
26 app:layout_constraintWidth_min="60dp"
29 <com.google.android.material.textview.MaterialTextView
30 android:id="@+id/label"
31 android:layout_width="wrap_content"
32 android:layout_height="wrap_content"
33 android:layout_marginBottom="@dimen/text_margin"
34 android:text="@string/choose_template_detail_source_label"
35 android:textSize="18sp"
36 app:layout_constraintBottom_toTopOf="@id/list"
37 app:layout_constraintEnd_toEndOf="parent"
38 app:layout_constraintStart_toStartOf="parent"
39 app:layout_constraintTop_toTopOf="parent"
42 <androidx.recyclerview.widget.RecyclerView
43 android:id="@+id/list"
44 android:name="net.ktnx.mobileledger.ui.PatternDetailSourceSelectorFragment"
45 android:layout_width="0dp"
46 android:layout_height="0dp"
47 app:layout_constraintWidth_min="50dp"
48 app:layout_constraintHeight_min="150dp"
49 android:layout_marginLeft="@dimen/activity_horizontal_margin"
50 android:layout_marginRight="@dimen/activity_horizontal_margin"
51 android:minHeight="100dp"
52 app:layoutManager="LinearLayoutManager"
53 app:layout_constraintBottom_toTopOf="@id/template_error"
54 app:layout_constraintEnd_toEndOf="parent"
55 app:layout_constraintStart_toStartOf="parent"
56 app:layout_constraintTop_toBottomOf="@id/label"
57 tools:context="net.ktnx.mobileledger.ui.CurrencySelectorFragment"
58 tools:listitem="@layout/fragment_template_detail_source_selector"
61 android:id="@+id/template_error"
62 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"
64 app:layout_constraintBottom_toTopOf="@id/literal_button"
65 app:layout_constraintEnd_toEndOf="parent"
66 app:layout_constraintStart_toStartOf="parent"
67 app:layout_constraintTop_toBottomOf="@id/list"
69 <com.google.android.material.button.MaterialButton
70 android:id="@+id/literal_button"
71 android:layout_width="wrap_content"
72 android:layout_height="wrap_content"
73 android:layout_marginTop="@dimen/text_margin"
74 android:text="@string/template_details_source_literal"
75 app:layout_constraintBottom_toBottomOf="parent"
76 app:layout_constraintEnd_toEndOf="parent"
78 </androidx.constraintlayout.widget.ConstraintLayout>