]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/activity_new_transaction.xml
more pronounced day/month delimiters in the transaction list
[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     android:fitsSystemWindows="false"
25     >
26
27     <androidx.constraintlayout.widget.ConstraintLayout
28         android:layout_width="match_parent"
29         android:layout_height="match_parent"
30         android:animateLayoutChanges="true"
31         >
32
33         <TextView
34             android:id="@+id/simulationLabel"
35             android:layout_width="0dp"
36             android:layout_height="0dp"
37             android:layout_margin="@dimen/activity_horizontal_margin"
38             android:clickable="false"
39             android:gravity="center"
40             android:maxLines="1"
41             android:rotation="-45"
42             android:text="@string/simulation_label"
43             android:textAlignment="center"
44             android:textColor="?attr/table_row_dark_bg"
45             android:textIsSelectable="false"
46             android:textSize="36sp"
47             android:textStyle="bold"
48             android:visibility="gone"
49             app:layout_constraintBottom_toBottomOf="parent"
50             app:layout_constraintEnd_toEndOf="parent"
51             app:layout_constraintStart_toStartOf="parent"
52             app:layout_constraintTop_toBottomOf="@+id/toolbar_layout"
53             />
54
55         <com.google.android.material.appbar.AppBarLayout
56             android:id="@+id/toolbar_layout"
57             android:layout_width="match_parent"
58             android:layout_height="wrap_content"
59             android:theme="@style/AppTheme.AppBarOverlay"
60             app:layout_constraintEnd_toEndOf="parent"
61             app:layout_constraintStart_toStartOf="parent"
62             app:layout_constraintTop_toTopOf="parent"
63             >
64
65             <androidx.appcompat.widget.Toolbar
66                 android:id="@+id/toolbar"
67                 android:layout_width="match_parent"
68                 android:layout_height="wrap_content"
69                 android:minHeight="?attr/actionBarSize"
70                 android:background="?attr/colorPrimary"
71                 app:popupTheme="@style/AppTheme.PopupOverlay"
72                 app:subtitleTextAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Subtitle"
73                 app:titleTextAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"
74                 />
75
76         </com.google.android.material.appbar.AppBarLayout>
77
78         <androidx.fragment.app.FragmentContainerView
79             android:id="@+id/new_transaction_nav"
80             android:name="androidx.navigation.fragment.NavHostFragment"
81             android:layout_width="0dp"
82             android:layout_height="0dp"
83             app:defaultNavHost="true"
84             app:layout_constraintBottom_toBottomOf="parent"
85             app:layout_constraintEnd_toEndOf="parent"
86             app:layout_constraintStart_toStartOf="parent"
87             app:layout_constraintTop_toBottomOf="@id/toolbar_layout"
88             app:navGraph="@navigation/new_transaction_navigation"
89             />
90
91     </androidx.constraintlayout.widget.ConstraintLayout>
92     <com.google.android.material.floatingactionbutton.FloatingActionButton
93         android:id="@+id/fabAdd"
94         android:layout_width="wrap_content"
95         android:layout_height="wrap_content"
96         android:layout_gravity="bottom|end"
97         android:layout_marginEnd="@dimen/fab_margin"
98         android:layout_marginBottom="@dimen/fab_margin"
99         android:contentDescription="@string/add_button_description"
100         android:padding="@dimen/fab_margin"
101         android:tint="?android:attr/colorBackground"
102         android:visibility="visible"
103         app:backgroundTint="?colorSecondary"
104         app:layout_constraintBottom_toBottomOf="parent"
105         app:layout_constraintEnd_toEndOf="parent"
106         app:srcCompat="@drawable/ic_save_white_24dp"
107         />
108 </androidx.coordinatorlayout.widget.CoordinatorLayout>