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="wrap_content"
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="0dp"
31 android:layout_height="wrap_content"
32 android:orientation="horizontal"
33 app:layout_constraintEnd_toEndOf="parent"
34 app:layout_constraintStart_toStartOf="parent"
35 app:layout_constraintTop_toTopOf="parent">
38 android:id="@+id/transaction_last_update_label"
39 android:layout_width="wrap_content"
40 android:layout_height="wrap_content"
41 android:paddingEnd="8dp"
42 android:text="@string/transactions_last_update_label"
43 app:layout_constraintEnd_toEndOf="parent"
44 app:layout_constraintStart_toStartOf="parent" />
47 android:id="@+id/transactions_last_update"
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:layout_weight="1"
52 tools:ignore="HardcodedText" />
56 android:id="@+id/view"
57 android:layout_width="0dp"
58 android:layout_height="6dp"
59 android:background="@drawable/drop_shadow"
60 app:layout_constraintTop_toBottomOf="@+id/last_update_row" />
63 android:id="@+id/transaction_progress_bar"
64 style="?android:attr/progressBarStyleHorizontal"
65 android:layout_width="0dp"
66 android:layout_height="wrap_content"
67 android:indeterminate="true"
68 android:indeterminateBehavior="cycle"
69 android:progressTint="@color/colorPrimary"
70 android:visibility="gone"
71 app:layout_constraintEnd_toEndOf="parent"
72 app:layout_constraintStart_toStartOf="parent"
73 app:layout_constraintTop_toBottomOf="@+id/last_update_row" />
75 <android.support.v4.widget.SwipeRefreshLayout
76 android:id="@+id/transaction_swipe"
77 android:layout_width="match_parent"
78 android:layout_height="0dp"
79 app:layout_constraintBottom_toBottomOf="parent"
80 app:layout_constraintTop_toBottomOf="@+id/transaction_progress_bar">
82 <android.support.v7.widget.RecyclerView
83 android:id="@+id/transaction_root"
84 android:layout_width="match_parent"
85 android:layout_height="match_parent"
86 android:scrollbars="vertical" />
87 </android.support.v4.widget.SwipeRefreshLayout>
88 </android.support.constraint.ConstraintLayout>