<?xml version="1.0" encoding="utf-8"?><!--
- ~ Copyright © 2020 Damyan Ivanov.
+ ~ Copyright © 2021 Damyan Ivanov.
~ This file is part of MoLe.
~ MoLe is free software: you can distribute it and/or modify it
~ under the term of the GNU General Public License as published by
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main_app_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?android:attr/colorBackground"
android:orientation="vertical"
- android:visibility="gone"
+ android:visibility="visible"
>
<com.google.android.material.floatingactionbutton.FloatingActionButton
app:popupTheme="@style/AppTheme.PopupOverlay"
/>
+
<LinearLayout
- android:id="@+id/main_header"
+ android:id="@+id/transaction_progress_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:orientation="vertical"
+ android:gravity="center_vertical"
+ android:orientation="horizontal"
+ android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/toolbar"
>
- <LinearLayout
- android:id="@+id/transaction_progress_layout"
- android:layout_width="match_parent"
+ <ProgressBar
+ android:id="@+id/transaction_list_progress_bar"
+ style="?android:attr/progressBarStyleHorizontal"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:visibility="gone"
- >
-
- <ProgressBar
- android:id="@+id/transaction_list_progress_bar"
- style="?android:attr/progressBarStyleHorizontal"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginTop="-8dp"
- android:layout_marginBottom="-7dp"
- android:layout_weight="1"
- android:indeterminate="true"
- android:min="0"
- android:padding="0dp"
- android:progressTint="?colorPrimary"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- />
-
- <TextView
- android:id="@+id/transaction_list_cancel_download"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/ic_clear_accent_24dp"
- android:clickable="true"
- android:focusable="true"
- />
- </LinearLayout>
+ android:layout_marginTop="-8dp"
+ android:layout_marginBottom="-7dp"
+ android:layout_weight="1"
+ android:indeterminate="true"
+ android:min="0"
+ android:padding="0dp"
+ android:progressTint="?colorPrimary"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ />
+ <TextView
+ android:id="@+id/transaction_list_cancel_download"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@drawable/ic_clear_accent_24dp"
+ android:clickable="true"
+ android:focusable="true"
+ />
</LinearLayout>
<androidx.viewpager2.widget.ViewPager2
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/main_header"
+ app:layout_constraintTop_toBottomOf="@id/transaction_progress_layout"
>
</androidx.viewpager2.widget.ViewPager2>
android:background="@drawable/drop_shadow"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/main_header"
+ app:layout_constraintTop_toBottomOf="@id/transaction_progress_layout"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
- <com.google.android.material.navigation.NavigationView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
+ <com.google.android.material.navigation.NavigationView xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
<TextView
android:id="@+id/nav_account_summary"
style="@style/nav_button"
- android:onClick="onAccountSummaryClicked"
android:text="@string/account_summary_title"
app:drawableStartCompat="@drawable/ic_home_black_24dp"
/>
<TextView
android:id="@+id/nav_latest_transactions"
style="@style/nav_button"
- android:onClick="onLatestTransactionsClicked"
android:text="@string/nav_transactions_title"
app:drawableStartCompat="@drawable/ic_event_note_black_24dp"
/>
app:drawableStartCompat="@drawable/ic_assignment_black_24dp"
/>
- <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/nav_profile_list_head_layout"
android:layout_width="match_parent"
android:layout_height="@dimen/thumb_row_height"
</LinearLayout>
</LinearLayout>
+ <TextView
+ android:id="@+id/nav_patterns"
+ style="@style/nav_button"
+ android:text="@string/nav_templates"
+ app:drawableStartCompat="@drawable/ic_baseline_auto_graph_24"
+ />
</LinearLayout>
</ScrollView>