]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/transaction_list_fragment.xml
move account name filter to the transaction list fragment
[mobile-ledger.git] / app / src / main / res / layout / transaction_list_fragment.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
18 <LinearLayout 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:gravity="top"
22     android:id="@+id/transaction_list"
23     android:layout_width="match_parent"
24     android:layout_height="match_parent"
25     android:orientation="vertical"
26     app:layout_behavior="@string/appbar_scrolling_view_behavior"
27     tools:context="net.ktnx.mobileledger.ui.activity.MainActivity">
28
29     <LinearLayout
30         android:id="@+id/transaction_list_account_name_filter"
31         android:layout_width="match_parent"
32         android:layout_height="wrap_content"
33         android:orientation="horizontal"
34         android:theme="@style/ThemeOverlay.AppCompat.Light"
35         android:visibility="gone">
36
37         <TextView
38             android:layout_width="wrap_content"
39             android:layout_height="wrap_content"
40             android:background="@drawable/ic_filter_list_black_24dp" />
41
42         <AutoCompleteTextView
43             android:id="@+id/transaction_filter_account_name"
44             android:layout_width="0dp"
45             android:layout_height="wrap_content"
46             android:layout_weight="1"
47             android:hint="@string/new_transaction_account_hint"
48             android:textColor="?textColor" />
49
50         <TextView
51             android:id="@+id/clearAccountNameFilter"
52             android:layout_width="wrap_content"
53             android:layout_height="wrap_content"
54             android:background="@drawable/ic_clear_black_24dp"
55             android:backgroundTint="?colorAccent"
56             android:clickable="true"
57             android:focusable="true" />
58
59     </LinearLayout>
60
61     <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
62         android:id="@+id/transaction_swipe"
63         android:layout_width="match_parent"
64         android:layout_height="match_parent">
65
66         <androidx.recyclerview.widget.RecyclerView
67             android:id="@+id/transaction_root"
68             android:layout_width="match_parent"
69             android:layout_height="match_parent"
70             android:scrollbars="vertical" />
71     </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
72
73 </LinearLayout>