From d831ebf230d420d0903631aed84c1fcffe808371 Mon Sep 17 00:00:00 2001 From: Mahdi Abolfazli Date: Thu, 14 Sep 2023 17:00:46 +0200 Subject: [PATCH] feat(bank-sdk): Improve desgin for main screen PIA-4446 --- .../src/main/res/layout/activity_main.xml | 15 +++++++-------- .../src/main/res/values-night/styles.xml | 2 +- .../example-app/src/main/res/values/dimens.xml | 14 ++++++++++++++ .../example-app/src/main/res/values/styles.xml | 2 +- capture-sdk/sdk/src/main/res/values/dimens.xml | 1 - 5 files changed, 23 insertions(+), 11 deletions(-) diff --git a/bank-sdk/example-app/src/main/res/layout/activity_main.xml b/bank-sdk/example-app/src/main/res/layout/activity_main.xml index 5b8d7a97bc..0ec5832858 100644 --- a/bank-sdk/example-app/src/main/res/layout/activity_main.xml +++ b/bank-sdk/example-app/src/main/res/layout/activity_main.xml @@ -24,7 +24,7 @@ style="@style/PhotoPaymentButtonStyle" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginTop="@dimen/gc_large_32" + android:layout_marginTop="@dimen/gc_large" android:paddingVertical="@dimen/gc_medium_12" android:text="@string/start_gini_photo_payment" app:layout_constraintEnd_toEndOf="parent" @@ -35,7 +35,7 @@ android:id="@+id/iv_giniLogo" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="@dimen/gc_large_80" + android:layout_marginTop="@dimen/gc_large_64" android:src="@drawable/gini_logo" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -47,7 +47,7 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginHorizontal="@dimen/gc_large_48" - android:layout_marginTop="@dimen/gc_large_20" + android:layout_marginTop="@dimen/gc_medium_12" android:gravity="center" android:text="@string/example_of_photo_payment" android:textAlignment="center" @@ -60,7 +60,7 @@ style="@style/Body1Gray" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="@dimen/gc_large_32" + android:layout_marginTop="@dimen/gc_large" android:text="@string/or_use_label" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -83,8 +83,7 @@ style="@style/GiniCaptureTheme.Typography.Overline" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginTop="@dimen/gc_large_32" - android:layout_marginBottom="@dimen/gc_medium_12" + android:layout_marginTop="@dimen/gc_large_48" android:gravity="center" android:padding="@dimen/gc_medium" app:layout_constraintBottom_toBottomOf="parent" @@ -110,8 +109,8 @@ diff --git a/bank-sdk/example-app/src/main/res/values-night/styles.xml b/bank-sdk/example-app/src/main/res/values-night/styles.xml index 5496a58426..dfb3821baf 100644 --- a/bank-sdk/example-app/src/main/res/values-night/styles.xml +++ b/bank-sdk/example-app/src/main/res/values-night/styles.xml @@ -39,7 +39,7 @@