1 <?xml version="1.0" encoding="utf-8"?><!--
2 ~ Copyright © 2019 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.coordinatorlayout.widget.CoordinatorLayout 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 tools:context=".ui.activity.NewTransactionActivity">
25 <androidx.constraintlayout.widget.ConstraintLayout
26 android:layout_width="match_parent"
27 android:layout_height="match_parent"
28 android:animateLayoutChanges="true">
31 android:id="@+id/simulationLabel"
32 style="@style/StretchedTextView"
33 android:layout_width="0dp"
34 android:layout_height="0dp"
35 android:layout_margin="@dimen/activity_horizontal_margin"
36 android:clickable="false"
37 android:gravity="center"
39 android:rotation="-45"
40 android:text="@string/simulation_label"
41 android:textAlignment="center"
42 android:textColor="@color/table_row_dark_bg"
43 android:textIsSelectable="false"
44 android:textSize="36sp"
45 android:textStyle="bold"
46 android:visibility="gone"
47 app:layout_constraintBottom_toBottomOf="parent"
48 app:layout_constraintEnd_toEndOf="parent"
49 app:layout_constraintStart_toStartOf="parent"
50 app:layout_constraintTop_toBottomOf="@+id/toolbar_layout" />
52 <com.google.android.material.appbar.AppBarLayout
53 android:id="@+id/toolbar_layout"
54 android:layout_width="match_parent"
55 android:layout_height="wrap_content"
56 android:theme="@style/AppTheme.AppBarOverlay"
57 app:layout_constraintEnd_toEndOf="parent"
58 app:layout_constraintStart_toStartOf="parent"
59 app:layout_constraintTop_toTopOf="parent">
61 <androidx.appcompat.widget.Toolbar
62 android:id="@+id/toolbar"
63 android:layout_width="match_parent"
64 android:layout_height="?attr/actionBarSize"
65 android:background="?attr/colorPrimary"
66 app:popupTheme="@style/AppTheme.PopupOverlay" />
68 </com.google.android.material.appbar.AppBarLayout>
71 android:id="@+id/new_transaction_nav"
72 android:name="androidx.navigation.fragment.NavHostFragment"
73 android:layout_width="0dp"
74 android:layout_height="0dp"
75 app:layout_constraintBottom_toBottomOf="parent"
76 app:layout_constraintEnd_toEndOf="parent"
77 app:layout_constraintStart_toStartOf="parent"
78 app:layout_constraintTop_toBottomOf="@id/toolbar_layout"
79 app:navGraph="@navigation/new_transaction_navigation" />
81 </androidx.constraintlayout.widget.ConstraintLayout>
83 </androidx.coordinatorlayout.widget.CoordinatorLayout>