From 9401b3e8f0d6f49751a4d203502cfb76842599c0 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Wed, 1 Apr 2020 15:11:55 -0300 Subject: [wallet] automatic code cleanup --- wallet/src/main/res/layout/activity_main.xml | 34 +-- wallet/src/main/res/layout/app_bar_main.xml | 84 +++---- .../src/main/res/layout/fragment_already_paid.xml | 48 ++-- wallet/src/main/res/layout/fragment_error.xml | 136 +++++------ wallet/src/main/res/layout/fragment_json.xml | 41 ++-- .../res/layout/fragment_payment_successful.xml | 76 +++---- .../res/layout/fragment_pending_operations.xml | 26 +-- .../src/main/res/layout/fragment_product_image.xml | 10 +- .../main/res/layout/fragment_prompt_payment.xml | 42 ++-- .../main/res/layout/fragment_prompt_withdraw.xml | 252 ++++++++++----------- .../res/layout/fragment_review_exchange_tos.xml | 128 +++++------ wallet/src/main/res/layout/fragment_settings.xml | 106 ++++----- .../src/main/res/layout/fragment_show_balance.xml | 126 +++++------ .../src/main/res/layout/fragment_show_history.xml | 45 ++-- .../res/layout/fragment_withdraw_successful.xml | 76 +++---- wallet/src/main/res/layout/history_payment.xml | 116 +++++----- wallet/src/main/res/layout/history_receive.xml | 144 ++++++------ wallet/src/main/res/layout/history_row.xml | 92 ++++---- wallet/src/main/res/layout/list_item_balance.xml | 100 ++++---- wallet/src/main/res/layout/list_item_product.xml | 96 ++++---- .../main/res/layout/list_item_product_single.xml | 102 ++++----- wallet/src/main/res/layout/payment_bottom_bar.xml | 176 +++++++------- wallet/src/main/res/layout/payment_details.xml | 168 +++++++------- wallet/src/main/res/layout/pending_row.xml | 47 ++-- 24 files changed, 1134 insertions(+), 1137 deletions(-) (limited to 'wallet/src/main/res/layout') diff --git a/wallet/src/main/res/layout/activity_main.xml b/wallet/src/main/res/layout/activity_main.xml index 0612306..3879490 100644 --- a/wallet/src/main/res/layout/activity_main.xml +++ b/wallet/src/main/res/layout/activity_main.xml @@ -15,26 +15,26 @@ --> + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fitsSystemWindows="true" + tools:openDrawer="start"> + layout="@layout/app_bar_main" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + android:id="@+id/nav_view" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_gravity="start" + android:fitsSystemWindows="false" + app:headerLayout="@layout/nav_header_main" + app:menu="@menu/activity_main_drawer" /> diff --git a/wallet/src/main/res/layout/app_bar_main.xml b/wallet/src/main/res/layout/app_bar_main.xml index d976be8..5ee55b2 100644 --- a/wallet/src/main/res/layout/app_bar_main.xml +++ b/wallet/src/main/res/layout/app_bar_main.xml @@ -15,61 +15,61 @@ --> + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context=".MainActivity"> + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:theme="@style/AppTheme.AppBarOverlay"> + android:id="@+id/relativeLayout" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + android:id="@+id/toolbar" + style="@style/AppTheme.Toolbar" + android:layout_width="0dp" + android:layout_height="wrap_content" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + android:id="@+id/progress_bar" + style="@style/Widget.MaterialProgressBar.ProgressBar.Horizontal" + android:layout_width="0dp" + android:layout_height="4dp" + android:elevation="4dp" + android:indeterminate="true" + android:visibility="invisible" + app:layout_constraintBottom_toBottomOf="@+id/toolbar" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:mpb_progressStyle="horizontal" + app:mpb_useIntrinsicPadding="false" + tools:visibility="visible" /> + android:id="@+id/nav_host_fragment" + android:name="androidx.navigation.fragment.NavHostFragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:defaultNavHost="true" + app:layout_behavior="@string/appbar_scrolling_view_behavior" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintRight_toRightOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:navGraph="@navigation/nav_graph" /> diff --git a/wallet/src/main/res/layout/fragment_already_paid.xml b/wallet/src/main/res/layout/fragment_already_paid.xml index d36fe69..5160a2e 100644 --- a/wallet/src/main/res/layout/fragment_already_paid.xml +++ b/wallet/src/main/res/layout/fragment_already_paid.xml @@ -15,38 +15,38 @@ --> + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_margin="15dp" + android:orientation="vertical" + tools:context=".payment.PaymentSuccessfulFragment"> + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" /> + android:layout_width="match_parent" + android:layout_height="50dp" + android:layout_gravity="center" + android:text="@string/payment_already_paid" + android:textAlignment="center" + android:textColor="@android:color/holo_green_dark" + app:autoSizeTextType="uniform" /> + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" />