1 <?xml version="1.0" encoding="utf-8"?><!--
2 ~ Copyright © 2019 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.
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.
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/>.
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="net.ktnx.mobileledger.ui.activity.MainActivity">
29 android:id="@+id/transaction_list_head"
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">
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">
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:background="@drawable/ic_filter_list_black_24dp" />
50 android:id="@+id/transaction_filter_account_name"
51 android:layout_width="0dp"
52 android:layout_height="wrap_content"
53 android:layout_weight="1" />
56 android:id="@+id/clearAccountNameFilter"
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:focusable="true"
62 android:onClick="onViewClicked" />
68 <android.support.v4.widget.SwipeRefreshLayout
69 android:id="@+id/transaction_swipe"
70 android:layout_width="match_parent"
71 android:layout_height="0dp"
72 app:layout_constraintBottom_toBottomOf="parent"
73 app:layout_constraintEnd_toEndOf="parent"
74 app:layout_constraintStart_toStartOf="parent"
75 app:layout_constraintTop_toBottomOf="@+id/transaction_list_head">
77 <android.support.v7.widget.RecyclerView
78 android:id="@+id/transaction_root"
79 android:layout_width="match_parent"
80 android:layout_height="match_parent"
81 android:scrollbars="vertical" />
82 </android.support.v4.widget.SwipeRefreshLayout>
84 </android.support.constraint.ConstraintLayout>