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.
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/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">
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:onClick="onViewClicked"
62 android:focusable="true" />
67 android:layout_width="match_parent"
68 android:layout_height="wrap_content"
69 android:elevation="24dp"
70 android:orientation="horizontal">
73 android:id="@+id/transaction_last_update_label"
74 android:layout_width="wrap_content"
75 android:layout_height="wrap_content"
76 android:paddingEnd="8dp"
77 android:text="@string/transactions_last_update_label"
78 app:layout_constraintEnd_toEndOf="parent"
79 app:layout_constraintStart_toStartOf="parent" />
82 android:id="@+id/transactions_last_update"
83 android:layout_width="wrap_content"
84 android:layout_height="wrap_content"
85 android:layout_weight="1"
87 tools:ignore="HardcodedText" />
91 android:id="@+id/transaction_progress_layout"
92 android:layout_width="match_parent"
93 android:layout_height="wrap_content"
94 android:gravity="center_vertical"
95 android:orientation="horizontal"
96 android:visibility="gone">
99 android:id="@+id/transaction_list_progress_bar"
100 style="?android:attr/progressBarStyleHorizontal"
101 android:layout_width="0dp"
102 android:layout_height="wrap_content"
103 android:layout_marginTop="-8dp"
104 android:layout_marginBottom="-7dp"
105 android:layout_weight="1"
106 android:indeterminate="true"
107 android:padding="0dp"
108 android:progressTint="@color/colorPrimary"
109 app:layout_constraintEnd_toEndOf="parent"
110 app:layout_constraintStart_toStartOf="parent"
111 app:layout_constraintTop_toBottomOf="@+id/last_update_row" />
114 android:id="@+id/transaction_list_cancel_download"
115 android:layout_width="wrap_content"
116 android:layout_height="wrap_content"
117 android:background="@drawable/ic_clear_black_24dp"
118 android:clickable="true"
119 android:onClick="onStopTransactionRefreshClick" />
124 <android.support.v4.widget.SwipeRefreshLayout
125 android:id="@+id/transaction_swipe"
126 android:layout_width="match_parent"
127 android:layout_height="0dp"
128 app:layout_constraintBottom_toBottomOf="parent"
129 app:layout_constraintEnd_toEndOf="parent"
130 app:layout_constraintStart_toStartOf="parent"
131 app:layout_constraintTop_toBottomOf="@+id/last_update_row">
133 <android.support.v7.widget.RecyclerView
134 android:id="@+id/transaction_root"
135 android:layout_width="match_parent"
136 android:layout_height="match_parent"
137 android:scrollbars="vertical" />
138 </android.support.v4.widget.SwipeRefreshLayout>
141 android:layout_width="0dp"
142 android:layout_height="4dp"
143 android:background="@drawable/drop_shadow"
144 app:layout_constraintTop_toBottomOf="@+id/last_update_row" />
145 </android.support.constraint.ConstraintLayout>