[android] Changed sale text look on subscription screens

This commit is contained in:
Александр Зацепин 2019-11-29 16:04:15 +03:00 committed by Arsentiy Milchakov
parent 864a8ac1f8
commit 69c096b066
2 changed files with 5 additions and 9 deletions

View file

@ -53,20 +53,17 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_quarter"
android:paddingLeft="@dimen/margin_half_plus"
android:paddingStart="@dimen/margin_half_plus"
android:paddingRight="@dimen/margin_half_plus"
android:paddingEnd="@dimen/margin_half_plus"
android:paddingStart="@dimen/margin_half"
android:paddingEnd="@dimen/margin_half"
android:paddingTop="@dimen/margin_quarter"
android:paddingBottom="@dimen/margin_quarter"
android:layout_gravity="top|start"
android:gravity="center_horizontal|top"
android:textSize="@dimen/text_size_toolbar"
android:textSize="@dimen/text_size_body_3"
android:textColor="@color/white_primary"
android:fontFamily="@string/robotoMedium"
android:letterSpacing="0.01"
android:elevation="@dimen/margin_eighth"
tools:text="-30%"
tools:text="@string/all_pass_screen_best_value"
tools:background="@color/sale_view_bg"
tools:targetApi="lollipop" />
</FrameLayout>

View file

@ -75,8 +75,7 @@ class TwoButtonsSubscriptionFragmentDelegate extends SubscriptionFragmentDelegat
String price = Utils.formatCurrencyString(details.getPrice(), details.getCurrencyCode());
mAnnualButton.setPrice(price);
mAnnualButton.setName(getFragment().getString(R.string.annual_subscription_title));
String sale = getFragment().getString(R.string.annual_save_component, getFragment().calculateYearlySaving());
mAnnualButton.setSale(sale);
mAnnualButton.setSale(getFragment().getString(R.string.all_pass_screen_best_value));
}
private void updateYearlyButton()