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 tools:context=".TransactionListActivity">
28 android:id="@+id/last_update_row"
29 android:layout_width="0dp"
30 android:layout_height="wrap_content"
31 android:orientation="horizontal"
32 app:layout_constraintEnd_toEndOf="parent"
33 app:layout_constraintStart_toStartOf="parent"
34 app:layout_constraintTop_toTopOf="parent">
37 android:id="@+id/transaction_last_update_label"
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
40 android:paddingEnd="8dp"
41 android:text="@string/transactions_last_update_label"
42 app:layout_constraintEnd_toEndOf="parent"
43 app:layout_constraintStart_toStartOf="parent" />
46 android:id="@+id/transactions_last_update"
47 android:layout_width="wrap_content"
48 android:layout_height="wrap_content"
49 android:layout_weight="1"
50 android:text="TextView" />
54 android:id="@+id/view"
55 android:layout_width="0dp"
56 android:layout_height="6dp"
57 android:background="@drawable/drop_shadow"
58 app:layout_constraintTop_toBottomOf="@+id/last_update_row" />
61 android:id="@+id/transaction_progress_bar"
62 style="?android:attr/progressBarStyleHorizontal"
63 android:layout_width="0dp"
64 android:layout_height="wrap_content"
65 android:indeterminate="true"
66 android:indeterminateBehavior="cycle"
68 android:progressTint="@color/colorPrimary"
69 android:visibility="gone"
70 app:layout_constraintEnd_toEndOf="parent"
71 app:layout_constraintStart_toStartOf="parent"
72 app:layout_constraintTop_toBottomOf="@+id/last_update_row" />
74 <android.support.v4.widget.SwipeRefreshLayout
75 android:id="@+id/transaction_swipe"
76 android:layout_width="match_parent"
77 android:layout_height="0dp"
78 app:layout_constraintTop_toBottomOf="@+id/transaction_progress_bar">
80 <android.support.v7.widget.RecyclerView
81 android:id="@+id/transaction_root"
82 android:layout_width="match_parent"
83 android:layout_height="match_parent" />
84 </android.support.v4.widget.SwipeRefreshLayout>
85 </android.support.constraint.ConstraintLayout>