]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/transaction_list_fragment.xml
2cd0d99d5d76b67afe42442985dcbdf6dea0e39a
[mobile-ledger.git] / app / src / main / res / layout / transaction_list_fragment.xml
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.
8   ~
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.
13   ~
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/>.
16   -->
17
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">
27
28     <LinearLayout
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">
36
37         <TextView
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" />
45
46         <TextView
47             android:id="@+id/transactions_last_update"
48             android:layout_width="wrap_content"
49             android:layout_height="wrap_content"
50             android:layout_weight="1"
51             android:text="\?"
52             tools:ignore="HardcodedText" />
53     </LinearLayout>
54
55     <ProgressBar
56         android:id="@+id/transaction_progress_bar"
57         style="?android:attr/progressBarStyleHorizontal"
58         android:layout_width="0dp"
59         android:layout_height="wrap_content"
60         android:indeterminate="true"
61         android:indeterminateBehavior="cycle"
62         android:progressTint="@color/colorPrimary"
63         android:visibility="gone"
64         app:layout_constraintEnd_toEndOf="parent"
65         app:layout_constraintStart_toStartOf="parent"
66         app:layout_constraintTop_toBottomOf="@+id/last_update_row" />
67
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_constraintTop_toBottomOf="@+id/transaction_progress_bar">
74
75         <android.support.v7.widget.RecyclerView
76             android:id="@+id/transaction_root"
77             android:layout_width="match_parent"
78             android:layout_height="match_parent"
79             android:scrollbars="vertical" />
80     </android.support.v4.widget.SwipeRefreshLayout>
81
82     <View
83         android:id="@+id/view"
84         android:layout_width="0dp"
85         android:layout_height="4dp"
86         android:background="@drawable/drop_shadow"
87         app:layout_constraintTop_toBottomOf="@+id/last_update_row" />
88 </android.support.constraint.ConstraintLayout>