]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/activity_main.xml
revert unintentional change in text color
[mobile-ledger.git] / app / src / main / res / layout / activity_main.xml
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.
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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18     xmlns:app="http://schemas.android.com/apk/res-auto"
19     xmlns:tools="http://schemas.android.com/tools"
20     android:layout_width="match_parent"
21     android:layout_height="match_parent"
22     android:orientation="vertical"
23     android:theme="@style/AppTheme.AppBarOverlay"
24     tools:context=".ui.activity.MainActivity">
25
26     <androidx.appcompat.widget.Toolbar
27         android:id="@+id/toolbar"
28         android:layout_width="match_parent"
29         android:layout_height="?attr/actionBarSize"
30         android:background="?colorPrimary"
31         app:popupTheme="@style/AppTheme.PopupOverlay" />
32
33     <androidx.drawerlayout.widget.DrawerLayout
34         android:id="@+id/drawer_layout"
35         android:layout_width="match_parent"
36         android:layout_height="match_parent"
37         tools:openDrawer="start">
38
39         <androidx.constraintlayout.widget.ConstraintLayout
40             android:layout_width="match_parent"
41             android:layout_height="match_parent">
42
43             <androidx.constraintlayout.widget.ConstraintLayout
44                 android:id="@+id/pager_layout"
45                 android:layout_width="match_parent"
46                 android:layout_height="match_parent">
47
48                 <com.google.android.material.floatingactionbutton.FloatingActionButton
49                     android:id="@+id/btn_add_transaction"
50                     android:layout_width="wrap_content"
51                     android:layout_height="wrap_content"
52                     android:layout_gravity="bottom|end"
53                     android:layout_margin="@dimen/fab_margin"
54                     app:backgroundTint="?colorAccent"
55                     app:maxImageSize="36dp"
56                     app:layout_constraintBottom_toBottomOf="parent"
57                     app:layout_constraintEnd_toEndOf="parent"
58                     app:srcCompat="@drawable/ic_add_white_24dp" />
59
60                 <LinearLayout
61                     android:id="@+id/main_header"
62                     android:layout_width="match_parent"
63                     android:layout_height="wrap_content"
64                     android:orientation="vertical"
65                     android:theme="@style/AppTheme"
66                     app:layout_constraintEnd_toEndOf="parent"
67                     app:layout_constraintStart_toStartOf="parent"
68                     app:layout_constraintTop_toTopOf="parent">
69
70                     <LinearLayout
71                         android:id="@+id/transaction_list_account_name_filter"
72                         android:layout_width="match_parent"
73                         android:layout_height="match_parent"
74                         android:orientation="horizontal"
75                         android:visibility="gone">
76
77                         <TextView
78                             android:layout_width="wrap_content"
79                             android:layout_height="wrap_content"
80                             android:background="@drawable/ic_filter_list_black_24dp" />
81
82                         <AutoCompleteTextView
83                             android:id="@+id/transaction_filter_account_name"
84                             android:layout_width="0dp"
85                             android:layout_height="wrap_content"
86                             android:layout_weight="1" />
87
88                         <TextView
89                             android:id="@+id/clearAccountNameFilter"
90                             android:layout_width="wrap_content"
91                             android:layout_height="wrap_content"
92                             android:background="@drawable/ic_clear_black_24dp"
93                             android:backgroundTint="?colorAccent"
94                             android:clickable="true"
95                             android:focusable="true" />
96
97                     </LinearLayout>
98
99                     <LinearLayout
100                         android:id="@+id/transactions_last_update_layout"
101                         android:layout_width="match_parent"
102                         android:layout_height="wrap_content"
103                         android:elevation="24dp"
104                         android:orientation="horizontal">
105
106                         <TextView
107                             android:id="@+id/transaction_last_update_label"
108                             android:layout_width="wrap_content"
109                             android:layout_height="wrap_content"
110                             android:paddingStart="8dp"
111                             android:paddingEnd="8dp"
112                             android:text="@string/transactions_last_update_label"
113                             android:textColor="@android:color/tertiary_text_light" />
114
115                         <TextView
116                             android:id="@+id/transactions_last_update"
117                             style="@android:style/Widget.DeviceDefault.Light.TextView"
118                             android:layout_width="0dp"
119                             android:layout_height="wrap_content"
120                             android:layout_weight="1"
121                             android:text="\?"
122                             android:textColor="@android:color/tertiary_text_light"
123                             tools:ignore="HardcodedText" />
124                     </LinearLayout>
125
126                     <LinearLayout
127                         android:id="@+id/transaction_progress_layout"
128                         android:layout_width="match_parent"
129                         android:layout_height="wrap_content"
130                         android:gravity="center_vertical"
131                         android:orientation="horizontal"
132                         android:visibility="gone">
133
134                         <ProgressBar
135                             android:id="@+id/transaction_list_progress_bar"
136                             style="?android:attr/progressBarStyleHorizontal"
137                             android:layout_width="0dp"
138                             android:layout_height="wrap_content"
139                             android:layout_marginTop="-8dp"
140                             android:layout_marginBottom="-7dp"
141                             android:layout_weight="1"
142                             android:indeterminate="true"
143                             android:padding="0dp"
144                             android:progressTint="?colorPrimary"
145                             app:layout_constraintEnd_toEndOf="parent"
146                             app:layout_constraintStart_toStartOf="parent" />
147
148                         <TextView
149                             android:id="@+id/transaction_list_cancel_download"
150                             android:layout_width="wrap_content"
151                             android:layout_height="wrap_content"
152                             android:background="@drawable/ic_clear_black_24dp"
153                             android:clickable="true"
154                             android:focusable="true"
155                             android:onClick="onStopTransactionRefreshClick" />
156                     </LinearLayout>
157
158                 </LinearLayout>
159
160                 <androidx.viewpager.widget.ViewPager
161                     android:id="@+id/root_frame"
162                     android:layout_width="match_parent"
163                     android:layout_height="0dp"
164                     app:layout_behavior="@string/appbar_scrolling_view_behavior"
165                     app:layout_constraintBottom_toBottomOf="parent"
166                     app:layout_constraintTop_toBottomOf="@+id/main_header">
167
168                 </androidx.viewpager.widget.ViewPager>
169
170                 <View
171                     android:layout_width="0dp"
172                     android:layout_height="4dp"
173                     android:background="@drawable/drop_shadow"
174                     app:layout_constraintEnd_toEndOf="parent"
175                     app:layout_constraintStart_toStartOf="parent"
176                     app:layout_constraintTop_toBottomOf="@id/main_header" />
177
178
179             </androidx.constraintlayout.widget.ConstraintLayout>
180
181             <include layout="@layout/no_profiles" />
182         </androidx.constraintlayout.widget.ConstraintLayout>
183
184         <include layout="@layout/main_navigation" />
185
186     </androidx.drawerlayout.widget.DrawerLayout>
187 </LinearLayout>