]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/activity_new_transaction.xml
shuffle some classes under proper packages
[mobile-ledger.git] / app / src / main / res / layout / activity_new_transaction.xml
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.
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 <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.new_transaction.NewTransactionActivity"
24     >
25
26     <androidx.constraintlayout.widget.ConstraintLayout
27         android:layout_width="match_parent"
28         android:layout_height="match_parent"
29         android:animateLayoutChanges="true"
30         >
31
32         <TextView
33             android:id="@+id/simulationLabel"
34             android:layout_width="0dp"
35             android:layout_height="0dp"
36             android:layout_margin="@dimen/activity_horizontal_margin"
37             android:clickable="false"
38             android:gravity="center"
39             android:maxLines="1"
40             android:rotation="-45"
41             android:text="@string/simulation_label"
42             android:textAlignment="center"
43             android:textColor="?attr/table_row_dark_bg"
44             android:textIsSelectable="false"
45             android:textSize="36sp"
46             android:textStyle="bold"
47             android:visibility="gone"
48             app:layout_constraintBottom_toBottomOf="parent"
49             app:layout_constraintEnd_toEndOf="parent"
50             app:layout_constraintStart_toStartOf="parent"
51             app:layout_constraintTop_toBottomOf="@+id/toolbar_layout"
52             />
53
54         <com.google.android.material.appbar.AppBarLayout
55             android:id="@+id/toolbar_layout"
56             android:layout_width="match_parent"
57             android:layout_height="wrap_content"
58             android:theme="@style/AppTheme.AppBarOverlay"
59             app:layout_constraintEnd_toEndOf="parent"
60             app:layout_constraintStart_toStartOf="parent"
61             app:layout_constraintTop_toTopOf="parent"
62             >
63
64             <androidx.appcompat.widget.Toolbar
65                 android:id="@+id/toolbar"
66                 android:layout_width="match_parent"
67                 android:layout_height="@dimen/toolbar_height"
68                 android:background="?attr/colorPrimary"
69                 app:popupTheme="@style/AppTheme.PopupOverlay"
70                 />
71
72         </com.google.android.material.appbar.AppBarLayout>
73
74         <androidx.fragment.app.FragmentContainerView
75             android:id="@+id/new_transaction_nav"
76             android:name="androidx.navigation.fragment.NavHostFragment"
77             android:layout_width="0dp"
78             android:layout_height="0dp"
79             app:defaultNavHost="true"
80             app:layout_constraintBottom_toBottomOf="parent"
81             app:layout_constraintEnd_toEndOf="parent"
82             app:layout_constraintStart_toStartOf="parent"
83             app:layout_constraintTop_toBottomOf="@id/toolbar_layout"
84             app:navGraph="@navigation/new_transaction_navigation"
85             />
86
87     </androidx.constraintlayout.widget.ConstraintLayout>
88
89 </androidx.coordinatorlayout.widget.CoordinatorLayout>