Showing
9 changed files
with
26 additions
and
16 deletions
| ... | @@ -5,7 +5,7 @@ android.buildFeatures.buildConfig = true | ... | @@ -5,7 +5,7 @@ android.buildFeatures.buildConfig = true |
| 5 | 5 | ||
| 6 | ext { | 6 | ext { |
| 7 | PUBLISH_GROUP_ID = 'ly.warp' | 7 | PUBLISH_GROUP_ID = 'ly.warp' |
| 8 | - PUBLISH_VERSION = '4.5.5.4p5' | 8 | + PUBLISH_VERSION = '4.5.5.4p6' |
| 9 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' | 9 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' |
| 10 | } | 10 | } |
| 11 | 11 | ... | ... |
| ... | @@ -9,6 +9,7 @@ import android.graphics.Typeface; | ... | @@ -9,6 +9,7 @@ import android.graphics.Typeface; |
| 9 | import android.os.Bundle; | 9 | import android.os.Bundle; |
| 10 | import android.text.SpannableStringBuilder; | 10 | import android.text.SpannableStringBuilder; |
| 11 | import android.text.Spanned; | 11 | import android.text.Spanned; |
| 12 | +import android.text.style.UnderlineSpan; | ||
| 12 | import android.view.LayoutInflater; | 13 | import android.view.LayoutInflater; |
| 13 | import android.view.View; | 14 | import android.view.View; |
| 14 | import android.view.ViewGroup; | 15 | import android.view.ViewGroup; |
| ... | @@ -180,7 +181,16 @@ public class MarketPassActivity extends Activity implements View.OnClickListener | ... | @@ -180,7 +181,16 @@ public class MarketPassActivity extends Activity implements View.OnClickListener |
| 180 | // sBuilder.setSpan(typefaceBoldSpan, startIndex, endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); | 181 | // sBuilder.setSpan(typefaceBoldSpan, startIndex, endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); |
| 181 | // mTvPassCount.setText(sBuilder, TextView.BufferType.SPANNABLE); | 182 | // mTvPassCount.setText(sBuilder, TextView.BufferType.SPANNABLE); |
| 182 | 183 | ||
| 183 | - mTvPassCount.setText(R.string.cos_market_pass_details); | 184 | + String fullText = getString(R.string.cos_market_pass_details); |
| 185 | + String targetText = "For You"; | ||
| 186 | + int startIndex = fullText.indexOf(targetText); | ||
| 187 | + int endIndex = startIndex + targetText.length(); | ||
| 188 | + SpannableStringBuilder sBuilder = new SpannableStringBuilder(fullText); | ||
| 189 | + sBuilder.setSpan(new UnderlineSpan(), startIndex, endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); | ||
| 190 | + Typeface typefaceSemiBold = ResourcesCompat.getFont(this, R.font.peridot_semi_bold); | ||
| 191 | + CustomTypefaceSpan typefaceSemiBoldSpan = new CustomTypefaceSpan(typefaceSemiBold); | ||
| 192 | + sBuilder.setSpan(typefaceSemiBoldSpan, startIndex, endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); | ||
| 193 | + mTvPassCount.setText(sBuilder, TextView.BufferType.SPANNABLE); | ||
| 184 | // } | 194 | // } |
| 185 | 195 | ||
| 186 | // if (mMarketPassDetails != null) { | 196 | // if (mMarketPassDetails != null) { | ... | ... |
| ... | @@ -421,7 +421,7 @@ | ... | @@ -421,7 +421,7 @@ |
| 421 | android:id="@+id/v_first_end" | 421 | android:id="@+id/v_first_end" |
| 422 | android:layout_width="8dp" | 422 | android:layout_width="8dp" |
| 423 | android:layout_height="8dp" | 423 | android:layout_height="8dp" |
| 424 | - android:background="@drawable/shape_indicator_grey" | 424 | + android:background="@drawable/shape_indicator" |
| 425 | android:visibility="gone" /> | 425 | android:visibility="gone" /> |
| 426 | 426 | ||
| 427 | <View | 427 | <View |
| ... | @@ -440,7 +440,7 @@ | ... | @@ -440,7 +440,7 @@ |
| 440 | android:id="@+id/v_second_end" | 440 | android:id="@+id/v_second_end" |
| 441 | android:layout_width="8dp" | 441 | android:layout_width="8dp" |
| 442 | android:layout_height="8dp" | 442 | android:layout_height="8dp" |
| 443 | - android:background="@drawable/shape_indicator_grey" /> | 443 | + android:background="@drawable/shape_indicator" /> |
| 444 | </LinearLayout> | 444 | </LinearLayout> |
| 445 | 445 | ||
| 446 | <LinearLayout | 446 | <LinearLayout |
| ... | @@ -812,7 +812,7 @@ | ... | @@ -812,7 +812,7 @@ |
| 812 | android:layout_width="16dp" | 812 | android:layout_width="16dp" |
| 813 | android:layout_height="16dp" | 813 | android:layout_height="16dp" |
| 814 | android:layout_marginStart="2dp" | 814 | android:layout_marginStart="2dp" |
| 815 | - android:background="@drawable/shape_cos_counter_magenta" | 815 | + android:background="@drawable/shape_cos_counter_orange" |
| 816 | android:gravity="center" | 816 | android:gravity="center" |
| 817 | android:orientation="vertical" | 817 | android:orientation="vertical" |
| 818 | app:layout_constraintBottom_toTopOf="@+id/tv_vouchers_info_title_disabled" | 818 | app:layout_constraintBottom_toTopOf="@+id/tv_vouchers_info_title_disabled" |
| ... | @@ -826,7 +826,7 @@ | ... | @@ -826,7 +826,7 @@ |
| 826 | android:includeFontPadding="false" | 826 | android:includeFontPadding="false" |
| 827 | android:maxLines="1" | 827 | android:maxLines="1" |
| 828 | android:text="0" | 828 | android:text="0" |
| 829 | - android:textColor="@color/white" | 829 | + android:textColor="@color/cos_light_black" |
| 830 | android:textSize="12sp" /> | 830 | android:textSize="12sp" /> |
| 831 | </LinearLayout> | 831 | </LinearLayout> |
| 832 | </androidx.constraintlayout.widget.ConstraintLayout> | 832 | </androidx.constraintlayout.widget.ConstraintLayout> | ... | ... |
| ... | @@ -64,7 +64,7 @@ | ... | @@ -64,7 +64,7 @@ |
| 64 | android:layout_alignParentEnd="true" | 64 | android:layout_alignParentEnd="true" |
| 65 | android:layout_marginTop="4dp" | 65 | android:layout_marginTop="4dp" |
| 66 | android:layout_marginEnd="1dp" | 66 | android:layout_marginEnd="1dp" |
| 67 | - android:background="@drawable/shape_cos_counter_magenta" | 67 | + android:background="@drawable/shape_cos_counter_orange" |
| 68 | android:gravity="center" | 68 | android:gravity="center" |
| 69 | android:orientation="vertical" | 69 | android:orientation="vertical" |
| 70 | android:translationZ="2dp" | 70 | android:translationZ="2dp" |
| ... | @@ -78,7 +78,7 @@ | ... | @@ -78,7 +78,7 @@ |
| 78 | android:layout_height="16dp" | 78 | android:layout_height="16dp" |
| 79 | android:includeFontPadding="false" | 79 | android:includeFontPadding="false" |
| 80 | android:maxLines="1" | 80 | android:maxLines="1" |
| 81 | - android:textColor="@color/white" | 81 | + android:textColor="@color/cos_light_black" |
| 82 | android:textSize="12sp" | 82 | android:textSize="12sp" |
| 83 | tools:text="6" /> | 83 | tools:text="6" /> |
| 84 | </LinearLayout> | 84 | </LinearLayout> | ... | ... |
| ... | @@ -64,7 +64,7 @@ | ... | @@ -64,7 +64,7 @@ |
| 64 | android:layout_alignParentEnd="true" | 64 | android:layout_alignParentEnd="true" |
| 65 | android:layout_marginTop="4dp" | 65 | android:layout_marginTop="4dp" |
| 66 | android:layout_marginEnd="1dp" | 66 | android:layout_marginEnd="1dp" |
| 67 | - android:background="@drawable/shape_cos_counter_magenta" | 67 | + android:background="@drawable/shape_cos_counter_orange" |
| 68 | android:gravity="center" | 68 | android:gravity="center" |
| 69 | android:orientation="vertical" | 69 | android:orientation="vertical" |
| 70 | android:translationZ="2dp" | 70 | android:translationZ="2dp" |
| ... | @@ -77,7 +77,7 @@ | ... | @@ -77,7 +77,7 @@ |
| 77 | android:layout_height="16dp" | 77 | android:layout_height="16dp" |
| 78 | android:includeFontPadding="false" | 78 | android:includeFontPadding="false" |
| 79 | android:maxLines="1" | 79 | android:maxLines="1" |
| 80 | - android:textColor="@color/white" | 80 | + android:textColor="@color/cos_light_black" |
| 81 | android:textSize="12sp" | 81 | android:textSize="12sp" |
| 82 | tools:text="6" /> | 82 | tools:text="6" /> |
| 83 | </LinearLayout> | 83 | </LinearLayout> | ... | ... |
| ... | @@ -64,7 +64,7 @@ | ... | @@ -64,7 +64,7 @@ |
| 64 | android:layout_alignParentEnd="true" | 64 | android:layout_alignParentEnd="true" |
| 65 | android:layout_marginTop="4dp" | 65 | android:layout_marginTop="4dp" |
| 66 | android:layout_marginEnd="1dp" | 66 | android:layout_marginEnd="1dp" |
| 67 | - android:background="@drawable/shape_cos_counter_magenta" | 67 | + android:background="@drawable/shape_cos_counter_orange" |
| 68 | android:gravity="center" | 68 | android:gravity="center" |
| 69 | android:orientation="vertical" | 69 | android:orientation="vertical" |
| 70 | android:translationZ="2dp" | 70 | android:translationZ="2dp" |
| ... | @@ -77,7 +77,7 @@ | ... | @@ -77,7 +77,7 @@ |
| 77 | android:layout_height="16dp" | 77 | android:layout_height="16dp" |
| 78 | android:includeFontPadding="false" | 78 | android:includeFontPadding="false" |
| 79 | android:maxLines="1" | 79 | android:maxLines="1" |
| 80 | - android:textColor="@color/white" | 80 | + android:textColor="@color/cos_light_black" |
| 81 | android:textSize="12sp" | 81 | android:textSize="12sp" |
| 82 | tools:text="6" /> | 82 | tools:text="6" /> |
| 83 | </LinearLayout> | 83 | </LinearLayout> | ... | ... |
| ... | @@ -64,7 +64,7 @@ | ... | @@ -64,7 +64,7 @@ |
| 64 | android:layout_alignParentEnd="true" | 64 | android:layout_alignParentEnd="true" |
| 65 | android:layout_marginTop="4dp" | 65 | android:layout_marginTop="4dp" |
| 66 | android:layout_marginEnd="1dp" | 66 | android:layout_marginEnd="1dp" |
| 67 | - android:background="@drawable/shape_cos_counter_magenta" | 67 | + android:background="@drawable/shape_cos_counter_orange" |
| 68 | android:gravity="center" | 68 | android:gravity="center" |
| 69 | android:orientation="vertical" | 69 | android:orientation="vertical" |
| 70 | android:translationZ="2dp" | 70 | android:translationZ="2dp" |
| ... | @@ -77,7 +77,7 @@ | ... | @@ -77,7 +77,7 @@ |
| 77 | android:layout_height="16dp" | 77 | android:layout_height="16dp" |
| 78 | android:includeFontPadding="false" | 78 | android:includeFontPadding="false" |
| 79 | android:maxLines="1" | 79 | android:maxLines="1" |
| 80 | - android:textColor="@color/white" | 80 | + android:textColor="@color/cos_light_black" |
| 81 | android:textSize="12sp" | 81 | android:textSize="12sp" |
| 82 | tools:text="6" /> | 82 | tools:text="6" /> |
| 83 | </LinearLayout> | 83 | </LinearLayout> | ... | ... |
| ... | @@ -193,7 +193,7 @@ | ... | @@ -193,7 +193,7 @@ |
| 193 | <string name="cos_market_ab_subtitle">1. Ενεργοποίησε τον κωδικό στην ΑΒ PLUS στο kiosk του καταστήματος ή μέσω AB eshop/app στην ενότητα Συνεργασίες – SUPERMARKET DEALS.\n\n2. Κάνε χρήση της ΑΒ PLUS στις αγορές σου για να λάβεις τις διαθέσιμες εκπτώσεις.</string> | 193 | <string name="cos_market_ab_subtitle">1. Ενεργοποίησε τον κωδικό στην ΑΒ PLUS στο kiosk του καταστήματος ή μέσω AB eshop/app στην ενότητα Συνεργασίες – SUPERMARKET DEALS.\n\n2. Κάνε χρήση της ΑΒ PLUS στις αγορές σου για να λάβεις τις διαθέσιμες εκπτώσεις.</string> |
| 194 | <string name="cos_market_pass_title">SUPERMARKET DEALS CARD</string> | 194 | <string name="cos_market_pass_title">SUPERMARKET DEALS CARD</string> |
| 195 | <string name="cos_market_pass_subtitle">Χρησιμοποίησε το μοναδικό κωδικό σου για να κερδίσεις έκπτωση σε επιλεγμένα προϊόντα. Ανακάλυψε τα κουπόνια στο For You.</string> | 195 | <string name="cos_market_pass_subtitle">Χρησιμοποίησε το μοναδικό κωδικό σου για να κερδίσεις έκπτωση σε επιλεγμένα προϊόντα. Ανακάλυψε τα κουπόνια στο For You.</string> |
| 196 | - <string name="cos_market_pass_details">Χρησιμοποίησε τη SUPERMARKET DEALS CARD σου για να κερδίσεις έκπτωση σε επιλεγμένα προϊόντα. Ανακάλυψε τα διαθέσιμα εκπτωτικά κουπόνια στο For You.</string> | 196 | + <string name="cos_market_pass_details">Χρησιμοποίησε τη SUPERMARKET DEALS CARD σου και κέρδισε έκπτωση σε επιλεγμένα προϊόντα. Ανακάλυψε τα προϊόντα με εκπτωτικό κουπόνι στο For You.</string> |
| 197 | <string name="cos_market_pass_return">Επιστροφή</string> | 197 | <string name="cos_market_pass_return">Επιστροφή</string> |
| 198 | <string name="cos_market_pass_coupons_title">Με τα διαθέσιμα κουπόνια μπορείς να εξοικονομήσεις έως και %1$s€.</string> | 198 | <string name="cos_market_pass_coupons_title">Με τα διαθέσιμα κουπόνια μπορείς να εξοικονομήσεις έως και %1$s€.</string> |
| 199 | <string name="cos_market_subtitle">Δημιούργησε το δικό σου ενιαίο κουπόνι προσφορών, και εξαργύρωσέ το στα supermarket της επιλογής σου γρήγορα και εύκολα με ένα μόνο κωδικό κουπονιού!</string> | 199 | <string name="cos_market_subtitle">Δημιούργησε το δικό σου ενιαίο κουπόνι προσφορών, και εξαργύρωσέ το στα supermarket της επιλογής σου γρήγορα και εύκολα με ένα μόνο κωδικό κουπονιού!</string> | ... | ... |
-
Please register or login to post a comment