From afef35a9124d3e1bcb1e85c1560fdda40c04f17b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=97=D0=B0=D1=86=D0=B5=D0=BF=D0=B8=D0=BD?= Date: Tue, 12 Nov 2019 17:51:41 +0300 Subject: [PATCH] [android] Fixed progress color and text color on pay buttons on all pass subscription fragment --- .../fragment_sightseeing_subscription.xml | 2 - .../pager_fragment_all_pass_subscription.xml | 101 +++++++++--------- android/res/layout/subscription_button.xml | 6 +- 3 files changed, 54 insertions(+), 55 deletions(-) diff --git a/android/res/layout/fragment_sightseeing_subscription.xml b/android/res/layout/fragment_sightseeing_subscription.xml index 5d784598b7..6f5cf1e4f9 100644 --- a/android/res/layout/fragment_sightseeing_subscription.xml +++ b/android/res/layout/fragment_sightseeing_subscription.xml @@ -124,7 +124,6 @@ android:layout_marginTop="@dimen/margin_double_and_half" android:layout_marginStart="@dimen/margin_base" android:layout_marginEnd="@dimen/margin_base" - android:minHeight="@dimen/height_block_base" app:buttonBackground="?primaryButtonBackground" app:saleBackground="@drawable/sightseeing_subs_sale_bg" app:progressColor="@color/white_primary" @@ -139,7 +138,6 @@ android:layout_marginTop="@dimen/margin_base" android:layout_marginStart="@dimen/margin_base" android:layout_marginEnd="@dimen/margin_base" - android:minHeight="@dimen/height_block_base" app:buttonBackground="?ghostButtonBackground" app:progressColor="@color/base_accent" app:showSale="false" diff --git a/android/res/layout/pager_fragment_all_pass_subscription.xml b/android/res/layout/pager_fragment_all_pass_subscription.xml index b5206de15f..276b7b8db6 100644 --- a/android/res/layout/pager_fragment_all_pass_subscription.xml +++ b/android/res/layout/pager_fragment_all_pass_subscription.xml @@ -2,10 +2,9 @@ - + android:layout_height="match_parent"> - + app:buttonTextColor="@color/black_primary" + app:progressColor="@color/base_accent" /> - + android:textAllCaps="true" + android:textAppearance="@style/MwmTextAppearance.Body3.Primary" + android:textColor="@color/white_primary" + tools:ignore="UnusedAttribute" + tools:text="Restore purchases" /> + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/margin_base"> + android:layout_height="wrap_content" + android:layout_weight="1"> + android:textColor="@color/white_lightest" + android:textSize="@dimen/text_size_body_5" + android:textStyle="normal" + tools:targetApi="lollipop" + tools:text="Terms of UseTerms of UseTerms of UseTerms of UseTerms of UseTerms of UseTerms of UseTerms of UseTerms of UseTerms of UseTerms of Use" /> + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="end"> + android:textColor="@color/white_lightest" + android:textSize="@dimen/text_size_body_5" + android:textStyle="normal" + tools:targetApi="lollipop" + tools:text="lollipoplollipoplollipoplollipoplollipoplollipoplollipoplollipoplollipoplollipoplollipoplollipoplollipoplollipoplollipoplollipoplollipop" /> - diff --git a/android/res/layout/subscription_button.xml b/android/res/layout/subscription_button.xml index 1f0d9c4011..32df9afcca 100644 --- a/android/res/layout/subscription_button.xml +++ b/android/res/layout/subscription_button.xml @@ -9,7 +9,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" - android:padding="@dimen/margin_base" + android:padding="@dimen/margin_half_plus" android:minHeight="@dimen/height_block_base" android:layout_marginTop="@dimen/margin_base_plus_quarter" tools:background="?primaryButtonBackground"> @@ -19,6 +19,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentStart="true" + android:layout_centerVertical="true" android:textColor="@color/white_primary" android:fontFamily="@string/robotoMedium" android:textSize="@dimen/text_size_body_3" @@ -31,6 +32,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" + android:layout_centerVertical="true" android:textColor="@color/white_primary" android:fontFamily="@string/robotoMedium" android:textSize="@dimen/text_size_body_3" @@ -62,7 +64,7 @@ android:textSize="@dimen/text_size_toolbar" android:textColor="@color/white_primary" android:fontFamily="@string/robotoMedium" - android:letterSpacing="0.15" + android:letterSpacing="0.01" android:elevation="@dimen/margin_eighth" tools:text="-30%" tools:background="@color/sale_view_bg"