<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright © 2018 Damyan Ivanov.
+ ~ This file is part of Mobile-Ledger.
+ ~ Mobile-Ledger is free software: you can distribute it and/or modify it
+ ~ under the term of the GNU General Public License as published by
+ ~ the Free Software Foundation, either version 3 of the License, or
+ ~ (at your opinion), any later version.
+ ~
+ ~ Mobile-Ledger is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ ~ GNU General Public License terms for details.
+ ~
+ ~ You should have received a copy of the GNU General Public License
+ ~ along with Mobile-Ledger. If not, see <https://www.gnu.org/licenses/>.
+ -->
+
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".AccountSummary"
tools:showIn="@layout/app_bar_account_summary">
- <TextView
- android:id="@+id/textProgress"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="TextView"
- android:visibility="gone"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- tools:ignore="HardcodedText" />
-
- <ProgressBar
- android:id="@+id/progressBar"
- style="?android:attr/progressBarStyle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="8dp"
- android:layout_marginEnd="8dp"
- android:layout_marginBottom="16dp"
- android:visibility="gone"
- app:layout_constraintBottom_toTopOf="@+id/textProgress"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent" />
-
- <ScrollView
- android:id="@+id/account_root_scroller"
+ <android.support.v4.widget.SwipeRefreshLayout
+ android:id="@+id/account_swiper"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingStart="@dimen/activity_horizontal_margin"
- android:paddingEnd="@dimen/activity_horizontal_margin"
- app:layout_constraintBottom_toTopOf="@+id/textProgress"
- app:layout_constraintTop_toTopOf="parent">
+ android:layout_height="match_parent">
- <LinearLayout
+ <android.support.v7.widget.RecyclerView
android:id="@+id/account_root"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:choiceMode="multipleChoice"
+ android:drawSelectorOnTop="true"
android:orientation="vertical">
- <TableLayout style="@style/account_summary_account_entry_table">
-
- <TableRow
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/table_row_even_bg">
-
- <TextView
- android:id="@+id/textView"
- style="@style/account_summary_account_name"
- android:text="TextView" />
-
- <TextView
- android:id="@+id/textView2"
- style="@style/account_summary_amounts"
- android:text="123.45" />
- </TableRow>
-
- </TableLayout>
- </LinearLayout>
- </ScrollView>
-
+ </android.support.v7.widget.RecyclerView>
+ </android.support.v4.widget.SwipeRefreshLayout>
</android.support.constraint.ConstraintLayout>
\ No newline at end of file