]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/transaction_list_fragment.xml
add transaction filter
[mobile-ledger.git] / app / src / main / res / layout / transaction_list_fragment.xml
1 <?xml version="1.0" encoding="utf-8"?><!--
2   ~ Copyright © 2018 Damyan Ivanov.
3   ~ This file is part of Mobile-Ledger.
4   ~ Mobile-Ledger 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   ~ Mobile-Ledger 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 Mobile-Ledger. If not, see <https://www.gnu.org/licenses/>.
16   -->
17
18 <android.support.constraint.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:id="@+id/transaction_list"
22     android:layout_width="match_parent"
23     android:layout_height="match_parent"
24     app:layout_behavior="@string/appbar_scrolling_view_behavior"
25     app:layout_constraintBottom_toBottomOf="parent"
26     tools:context=".TransactionListActivity">
27
28     <LinearLayout
29         android:id="@+id/last_update_row"
30         android:layout_width="match_parent"
31         android:layout_height="wrap_content"
32         android:orientation="vertical"
33         app:layout_constraintEnd_toEndOf="parent"
34         app:layout_constraintStart_toStartOf="parent"
35         app:layout_constraintTop_toTopOf="parent">
36
37         <LinearLayout
38             android:id="@+id/transaction_list_account_name_filter"
39             android:layout_width="match_parent"
40             android:layout_height="match_parent"
41             android:orientation="horizontal"
42             android:visibility="gone">
43
44             <TextView
45                 android:layout_width="wrap_content"
46                 android:layout_height="wrap_content"
47                 android:text="Account filter" />
48
49             <AutoCompleteTextView
50                 android:id="@+id/transaction_filter_account_name"
51                 android:layout_width="0dp"
52                 android:layout_height="wrap_content"
53                 android:layout_weight="1" />
54
55             <TextView
56                 android:id="@+id/textView3"
57                 android:layout_width="wrap_content"
58                 android:layout_height="wrap_content"
59                 android:background="@drawable/ic_clear_black_24dp"
60                 android:clickable="true"
61                 android:onClick="onClearAccountNameClick" />
62
63         </LinearLayout>
64
65         <LinearLayout
66             android:layout_width="match_parent"
67             android:layout_height="wrap_content"
68             android:elevation="24dp"
69             android:orientation="horizontal">
70
71             <TextView
72                 android:id="@+id/transaction_last_update_label"
73                 android:layout_width="wrap_content"
74                 android:layout_height="wrap_content"
75                 android:paddingEnd="8dp"
76                 android:text="@string/transactions_last_update_label"
77                 app:layout_constraintEnd_toEndOf="parent"
78                 app:layout_constraintStart_toStartOf="parent" />
79
80             <TextView
81                 android:id="@+id/transactions_last_update"
82                 android:layout_width="wrap_content"
83                 android:layout_height="wrap_content"
84                 android:layout_weight="1"
85                 android:text="\?"
86                 tools:ignore="HardcodedText" />
87         </LinearLayout>
88
89         <LinearLayout
90             android:id="@+id/transaction_progress_layout"
91             android:layout_width="match_parent"
92             android:layout_height="wrap_content"
93             android:gravity="center_vertical"
94             android:orientation="horizontal"
95             android:visibility="gone">
96
97             <ProgressBar
98                 android:id="@+id/transaction_list_progress_bar"
99                 style="?android:attr/progressBarStyleHorizontal"
100                 android:layout_width="0dp"
101                 android:layout_height="wrap_content"
102                 android:layout_marginTop="-8dp"
103                 android:layout_marginBottom="-7dp"
104                 android:layout_weight="1"
105                 android:indeterminate="true"
106                 android:padding="0dp"
107                 android:progressTint="@color/colorPrimary"
108                 app:layout_constraintEnd_toEndOf="parent"
109                 app:layout_constraintStart_toStartOf="parent"
110                 app:layout_constraintTop_toBottomOf="@+id/last_update_row" />
111
112             <TextView
113                 android:id="@+id/transaction_list_cancel_download"
114                 android:layout_width="wrap_content"
115                 android:layout_height="wrap_content"
116                 android:background="@drawable/ic_clear_black_24dp"
117                 android:clickable="true"
118                 android:onClick="onStopTransactionRefreshClick" />
119         </LinearLayout>
120
121     </LinearLayout>
122
123     <android.support.v4.widget.SwipeRefreshLayout
124         android:id="@+id/transaction_swipe"
125         android:layout_width="match_parent"
126         android:layout_height="0dp"
127         app:layout_constraintBottom_toBottomOf="parent"
128         app:layout_constraintEnd_toEndOf="parent"
129         app:layout_constraintStart_toStartOf="parent"
130         app:layout_constraintTop_toBottomOf="@+id/last_update_row">
131
132         <android.support.v7.widget.RecyclerView
133             android:id="@+id/transaction_root"
134             android:layout_width="match_parent"
135             android:layout_height="match_parent"
136             android:scrollbars="vertical" />
137     </android.support.v4.widget.SwipeRefreshLayout>
138
139     <View
140         android:layout_width="0dp"
141         android:layout_height="4dp"
142         android:background="@drawable/drop_shadow"
143         app:layout_constraintTop_toBottomOf="@+id/last_update_row" />
144 </android.support.constraint.ConstraintLayout>