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=".TransactionListActivity">
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:layout_width="match_parent"
39 android:layout_height="wrap_content"
40 android:elevation="24dp"
41 android:orientation="horizontal">
44 android:id="@+id/transaction_last_update_label"
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:paddingEnd="8dp"
48 android:text="@string/transactions_last_update_label"
49 app:layout_constraintEnd_toEndOf="parent"
50 app:layout_constraintStart_toStartOf="parent" />
53 android:id="@+id/transactions_last_update"
54 android:layout_width="wrap_content"
55 android:layout_height="wrap_content"
56 android:layout_weight="1"
58 tools:ignore="HardcodedText" />
62 android:id="@+id/transaction_progress_layout"
63 android:layout_width="match_parent"
64 android:layout_height="match_parent"
65 android:gravity="center_vertical"
66 android:orientation="horizontal"
67 android:visibility="gone">
70 android:id="@+id/transaction_list_progress_bar"
71 style="?android:attr/progressBarStyleHorizontal"
72 android:layout_width="0dp"
73 android:layout_height="wrap_content"
74 android:layout_marginTop="-8dp"
75 android:layout_marginBottom="-7dp"
76 android:layout_weight="1"
77 android:indeterminate="true"
79 android:progressTint="@color/colorPrimary"
80 app:layout_constraintEnd_toEndOf="parent"
81 app:layout_constraintStart_toStartOf="parent"
82 app:layout_constraintTop_toBottomOf="@+id/last_update_row" />
85 android:id="@+id/transaction_list_cancel_download"
86 android:layout_width="wrap_content"
87 android:layout_height="wrap_content"
88 android:background="@drawable/ic_clear_black_24dp"
89 android:clickable="true"
90 android:onClick="onStopTransactionRefreshClick" />
95 <android.support.v4.widget.SwipeRefreshLayout
96 android:id="@+id/transaction_swipe"
97 android:layout_width="match_parent"
98 android:layout_height="0dp"
99 app:layout_constraintBottom_toBottomOf="parent"
100 app:layout_constraintEnd_toEndOf="parent"
101 app:layout_constraintStart_toStartOf="parent"
102 app:layout_constraintTop_toBottomOf="@+id/last_update_row">
104 <android.support.v7.widget.RecyclerView
105 android:id="@+id/transaction_root"
106 android:layout_width="match_parent"
107 android:layout_height="match_parent"
108 android:scrollbars="vertical" />
109 </android.support.v4.widget.SwipeRefreshLayout>
112 android:layout_width="0dp"
113 android:layout_height="4dp"
114 android:background="@drawable/drop_shadow"
115 app:layout_constraintTop_toBottomOf="@+id/last_update_row" />
116 </android.support.constraint.ConstraintLayout>