Panagiotis Triantafyllou

my rewards box tile part2

...@@ -2,7 +2,7 @@ apply plugin: 'com.android.library' ...@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
2 2
3 ext { 3 ext {
4 PUBLISH_GROUP_ID = 'ly.warp' 4 PUBLISH_GROUP_ID = 'ly.warp'
5 - PUBLISH_VERSION = '4.5.5.4r23' 5 + PUBLISH_VERSION = '4.5.5.4r24'
6 PUBLISH_ARTIFACT_ID = 'warply-android-sdk' 6 PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
7 } 7 }
8 8
......
...@@ -2,6 +2,7 @@ package ly.warp.sdk.fragments; ...@@ -2,6 +2,7 @@ package ly.warp.sdk.fragments;
2 2
3 import static android.app.Activity.RESULT_OK; 3 import static android.app.Activity.RESULT_OK;
4 4
5 +import android.content.Context;
5 import android.content.Intent; 6 import android.content.Intent;
6 import android.os.Bundle; 7 import android.os.Bundle;
7 import android.os.Handler; 8 import android.os.Handler;
...@@ -10,6 +11,8 @@ import android.text.TextUtils; ...@@ -10,6 +11,8 @@ import android.text.TextUtils;
10 import android.view.LayoutInflater; 11 import android.view.LayoutInflater;
11 import android.view.View; 12 import android.view.View;
12 import android.view.ViewGroup; 13 import android.view.ViewGroup;
14 +import android.view.ViewTreeObserver;
15 +import android.widget.HorizontalScrollView;
13 import android.widget.ImageView; 16 import android.widget.ImageView;
14 import android.widget.LinearLayout; 17 import android.widget.LinearLayout;
15 import android.widget.RelativeLayout; 18 import android.widget.RelativeLayout;
...@@ -24,6 +27,10 @@ import androidx.fragment.app.Fragment; ...@@ -24,6 +27,10 @@ import androidx.fragment.app.Fragment;
24 import org.greenrobot.eventbus.EventBus; 27 import org.greenrobot.eventbus.EventBus;
25 import org.greenrobot.eventbus.Subscribe; 28 import org.greenrobot.eventbus.Subscribe;
26 29
30 +import java.util.ArrayList;
31 +import java.util.Collections;
32 +import java.util.Comparator;
33 +
27 import ly.warp.sdk.R; 34 import ly.warp.sdk.R;
28 import ly.warp.sdk.activities.ActiveCouponsActivity; 35 import ly.warp.sdk.activities.ActiveCouponsActivity;
29 import ly.warp.sdk.activities.ActiveUnifiedCouponsActivity; 36 import ly.warp.sdk.activities.ActiveUnifiedCouponsActivity;
...@@ -36,6 +43,7 @@ import ly.warp.sdk.io.models.ActiveDFYCouponEventModel; ...@@ -36,6 +43,7 @@ import ly.warp.sdk.io.models.ActiveDFYCouponEventModel;
36 import ly.warp.sdk.io.models.Coupon; 43 import ly.warp.sdk.io.models.Coupon;
37 import ly.warp.sdk.io.models.Couponset; 44 import ly.warp.sdk.io.models.Couponset;
38 import ly.warp.sdk.io.models.LoyaltySDKFirebaseEventModel; 45 import ly.warp.sdk.io.models.LoyaltySDKFirebaseEventModel;
46 +import ly.warp.sdk.io.models.SortTileModel;
39 import ly.warp.sdk.io.models.VouchersActivityEventModel; 47 import ly.warp.sdk.io.models.VouchersActivityEventModel;
40 import ly.warp.sdk.io.models.WarplyDealsAnalysisEventModel; 48 import ly.warp.sdk.io.models.WarplyDealsAnalysisEventModel;
41 import ly.warp.sdk.utils.WarpUtils; 49 import ly.warp.sdk.utils.WarpUtils;
...@@ -59,7 +67,7 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener ...@@ -59,7 +67,7 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener
59 mTvVouchersDisabledTitle, mTvVouchersDisabledSubtitle, mTvVouchersTitle, mTvVouchersSubtitle; 67 mTvVouchersDisabledTitle, mTvVouchersDisabledSubtitle, mTvVouchersTitle, mTvVouchersSubtitle;
60 private ConstraintLayout mLlQuestionnaireCentered, 68 private ConstraintLayout mLlQuestionnaireCentered,
61 mLlQuestionnaire, mLlUserBadge, mLlUserBadgeCentered; 69 mLlQuestionnaire, mLlUserBadge, mLlUserBadgeCentered;
62 - private LinearLayout mLlEmptyWallet, 70 + private LinearLayout mLlEmptyWallet, mLlTilesParent,
63 mLlBannerInfo, mLlVouchers, mLlVouchersSpinner, 71 mLlBannerInfo, mLlVouchers, mLlVouchersSpinner,
64 mLlVouchersDisabled; 72 mLlVouchersDisabled;
65 private ImageView mIvHistory; 73 private ImageView mIvHistory;
...@@ -73,6 +81,9 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener ...@@ -73,6 +81,9 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener
73 mGiftsCountPressed = false, mBoxCountPressed = false; 81 mGiftsCountPressed = false, mBoxCountPressed = false;
74 private RelativeLayout mRlDeals, mRlUnified, mRlGifts, mRlBox; 82 private RelativeLayout mRlDeals, mRlUnified, mRlGifts, mRlBox;
75 private boolean mIsDealsEmpty = false, mIsMarketsEmpty = false, mIsCouponsEmpty = false; 83 private boolean mIsDealsEmpty = false, mIsMarketsEmpty = false, mIsCouponsEmpty = false;
84 + private HorizontalScrollView mTilesScroll;
85 + private View mFirstStart, mFirstEnd, mSecondStart, mSecondEnd;
86 + private ArrayList<SortTileModel> mSortTileList = new ArrayList<>();
76 87
77 // =========================================================== 88 // ===========================================================
78 // Methods for/from SuperClass/Interfaces 89 // Methods for/from SuperClass/Interfaces
...@@ -101,15 +112,15 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener ...@@ -101,15 +112,15 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener
101 mTvUserBadgeCentered = view.findViewById(R.id.tv_type_centered); 112 mTvUserBadgeCentered = view.findViewById(R.id.tv_type_centered);
102 mLlEmptyWallet = view.findViewById(R.id.ll_empty_wallet); 113 mLlEmptyWallet = view.findViewById(R.id.ll_empty_wallet);
103 mIvHistory = view.findViewById(R.id.iv_loyalty_history); 114 mIvHistory = view.findViewById(R.id.iv_loyalty_history);
104 - mTvDealsCountBadge = view.findViewById(R.id.tv_deals_count); 115 +// mTvDealsCountBadge = view.findViewById(R.id.tv_deals_count);
105 - mTvUnifiedCountBadge = view.findViewById(R.id.tv_sm_count); 116 +// mTvUnifiedCountBadge = view.findViewById(R.id.tv_sm_count);
106 - mTvGiftsCountBadge = view.findViewById(R.id.tv_gifts_count); 117 +// mTvGiftsCountBadge = view.findViewById(R.id.tv_gifts_count);
107 - mTvBoxCountBadge = view.findViewById(R.id.tv_box_count); 118 +// mTvBoxCountBadge = view.findViewById(R.id.tv_box_count);
108 mLlBannerInfo = view.findViewById(R.id.ll_banner_info_new); 119 mLlBannerInfo = view.findViewById(R.id.ll_banner_info_new);
109 - mRlDeals = view.findViewById(R.id.rv_deals_count); 120 +// mRlDeals = view.findViewById(R.id.rv_deals_count);
110 - mRlUnified = view.findViewById(R.id.rv_sm_count); 121 +// mRlUnified = view.findViewById(R.id.rv_sm_count);
111 - mRlGifts = view.findViewById(R.id.rv_gifts_count); 122 +// mRlGifts = view.findViewById(R.id.rv_gifts_count);
112 - mRlBox = view.findViewById(R.id.rv_box_count); 123 +// mRlBox = view.findViewById(R.id.rv_box_count);
113 mCvVouchers = view.findViewById(R.id.cv_vouchers); 124 mCvVouchers = view.findViewById(R.id.cv_vouchers);
114 mCvVouchersDisabled = view.findViewById(R.id.cv_vouchers_disabled); 125 mCvVouchersDisabled = view.findViewById(R.id.cv_vouchers_disabled);
115 mLlVouchers = view.findViewById(R.id.ll_vouchers); 126 mLlVouchers = view.findViewById(R.id.ll_vouchers);
...@@ -119,6 +130,43 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener ...@@ -119,6 +130,43 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener
119 mTvVouchersDisabledSubtitle = view.findViewById(R.id.tv_vouchers_info_title_disabled); 130 mTvVouchersDisabledSubtitle = view.findViewById(R.id.tv_vouchers_info_title_disabled);
120 mTvVouchersTitle = view.findViewById(R.id.tv_vouchers_title); 131 mTvVouchersTitle = view.findViewById(R.id.tv_vouchers_title);
121 mTvVouchersSubtitle = view.findViewById(R.id.tv_vouchers_info_title); 132 mTvVouchersSubtitle = view.findViewById(R.id.tv_vouchers_info_title);
133 + mTilesScroll = view.findViewById(R.id.scr_tiles);
134 + mLlTilesParent = view.findViewById(R.id.ll_tiles_parent);
135 + mFirstStart = view.findViewById(R.id.v_first_start);
136 + mFirstEnd = view.findViewById(R.id.v_first_end);
137 + mSecondStart = view.findViewById(R.id.v_second_start);
138 + mSecondEnd = view.findViewById(R.id.v_second_end);
139 +
140 + defineAndSortTiles();
141 + createTiles();
142 +
143 + // Smooth scroll to the start initially
144 + // Comment out if needed
145 +// mTilesScroll.post(new Runnable() {
146 +// @Override
147 +// public void run() {
148 +// mTilesScroll.fullScroll(HorizontalScrollView.FOCUS_LEFT);
149 +// }
150 +// });
151 +
152 + mTilesScroll.setOnScrollChangeListener((v, scrollX, scrollY, oldScrollX, oldScrollY) -> {
153 + // Check scroll position
154 + int maxScrollX = mTilesScroll.getChildAt(0).getWidth() - mTilesScroll.getWidth();
155 +
156 + if (scrollX == 0) {
157 + // Scrolled to the start
158 + mFirstStart.setVisibility(View.VISIBLE);
159 + mFirstEnd.setVisibility(View.GONE);
160 + mSecondStart.setVisibility(View.GONE);
161 + mSecondEnd.setVisibility(View.VISIBLE);
162 + } else if (scrollX == maxScrollX) {
163 + // Scrolled to the end
164 + mFirstStart.setVisibility(View.GONE);
165 + mFirstEnd.setVisibility(View.VISIBLE);
166 + mSecondStart.setVisibility(View.VISIBLE);
167 + mSecondEnd.setVisibility(View.GONE);
168 + }
169 + });
122 } 170 }
123 171
124 @Override 172 @Override
...@@ -221,41 +269,41 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener ...@@ -221,41 +269,41 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener
221 return; 269 return;
222 } 270 }
223 /** Active Unified Banner */ 271 /** Active Unified Banner */
224 - if (view.getId() == R.id.rv_sm_count) { 272 +// if (view.getId() == R.id.rv_sm_count) {
225 - if (!mUnifiedCountPressed) { 273 +// if (!mUnifiedCountPressed) {
226 - mUnifiedCountPressed = true; 274 +// mUnifiedCountPressed = true;
227 - WarplyAnalyticsManager.logTrackersEvent(getContext(), "click", ("LoyaltyWalletScreen") 275 +// WarplyAnalyticsManager.logTrackersEvent(getContext(), "click", ("LoyaltyWalletScreen")
228 - .concat(":") 276 +// .concat(":")
229 - .concat("ActiveMarketBanner")); 277 +// .concat("ActiveMarketBanner"));
230 - 278 +//
231 - LoyaltySDKFirebaseEventModel analyticsEvent = new LoyaltySDKFirebaseEventModel(); 279 +// LoyaltySDKFirebaseEventModel analyticsEvent = new LoyaltySDKFirebaseEventModel();
232 - analyticsEvent.setEventName("did_tap_market_active_badge"); 280 +// analyticsEvent.setEventName("did_tap_market_active_badge");
233 - analyticsEvent.setParameter("screen", "Loyalty Wallet"); 281 +// analyticsEvent.setParameter("screen", "Loyalty Wallet");
234 - EventBus.getDefault().post(new WarplyEventBusManager(analyticsEvent)); 282 +// EventBus.getDefault().post(new WarplyEventBusManager(analyticsEvent));
235 - 283 +//
236 - Intent intent = new Intent(getContext(), ActiveUnifiedCouponsActivity.class); 284 +// Intent intent = new Intent(getContext(), ActiveUnifiedCouponsActivity.class);
237 - startActivity(intent); 285 +// startActivity(intent);
238 - } 286 +// }
239 - return; 287 +// return;
240 - } 288 +// }
241 /** Active Coupons Banner */ 289 /** Active Coupons Banner */
242 - if (view.getId() == R.id.rv_gifts_count) { 290 +// if (view.getId() == R.id.rv_gifts_count) {
243 - if (!mGiftsCountPressed) { 291 +// if (!mGiftsCountPressed) {
244 - mGiftsCountPressed = true; 292 +// mGiftsCountPressed = true;
245 - WarplyAnalyticsManager.logTrackersEvent(getContext(), "click", ("LoyaltyWalletScreen") 293 +// WarplyAnalyticsManager.logTrackersEvent(getContext(), "click", ("LoyaltyWalletScreen")
246 - .concat(":") 294 +// .concat(":")
247 - .concat("ActiveLoyaltyBanner")); 295 +// .concat("ActiveLoyaltyBanner"));
248 - 296 +//
249 - LoyaltySDKFirebaseEventModel analyticsEvent = new LoyaltySDKFirebaseEventModel(); 297 +// LoyaltySDKFirebaseEventModel analyticsEvent = new LoyaltySDKFirebaseEventModel();
250 - analyticsEvent.setEventName("did_tap_gifts_for_you_active_badge"); 298 +// analyticsEvent.setEventName("did_tap_gifts_for_you_active_badge");
251 - analyticsEvent.setParameter("screen", "Loyalty Wallet"); 299 +// analyticsEvent.setParameter("screen", "Loyalty Wallet");
252 - EventBus.getDefault().post(new WarplyEventBusManager(analyticsEvent)); 300 +// EventBus.getDefault().post(new WarplyEventBusManager(analyticsEvent));
253 - 301 +//
254 - Intent intent = new Intent(getContext(), ActiveCouponsActivity.class); 302 +// Intent intent = new Intent(getContext(), ActiveCouponsActivity.class);
255 - startActivity(intent); 303 +// startActivity(intent);
256 - } 304 +// }
257 - return; 305 +// return;
258 - } 306 +// }
259 /** Coupons History */ 307 /** Coupons History */
260 if (view.getId() == R.id.cl_deals_win_inner) { 308 if (view.getId() == R.id.cl_deals_win_inner) {
261 if (!mHistoryPressed) { 309 if (!mHistoryPressed) {
...@@ -275,24 +323,24 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener ...@@ -275,24 +323,24 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener
275 return; 323 return;
276 } 324 }
277 /** Active Box Banner */ 325 /** Active Box Banner */
278 - if (view.getId() == R.id.rv_box_count) { 326 +// if (view.getId() == R.id.rv_box_count) {
279 - if (!mBoxCountPressed) { 327 +// if (!mBoxCountPressed) {
280 - mBoxCountPressed = true; 328 +// mBoxCountPressed = true;
281 - WarplyAnalyticsManager.logTrackersEvent(getContext(), "click", ("LoyaltyWalletScreen") 329 +// WarplyAnalyticsManager.logTrackersEvent(getContext(), "click", ("LoyaltyWalletScreen")
282 - .concat(":") 330 +// .concat(":")
283 - .concat("ActiveBoxBanner")); 331 +// .concat("ActiveBoxBanner"));
284 - 332 +//
285 - LoyaltySDKFirebaseEventModel analyticsEvent = new LoyaltySDKFirebaseEventModel(); 333 +// LoyaltySDKFirebaseEventModel analyticsEvent = new LoyaltySDKFirebaseEventModel();
286 - analyticsEvent.setEventName("did_tap_box_active_badge"); 334 +// analyticsEvent.setEventName("did_tap_box_active_badge");
287 - analyticsEvent.setParameter("screen", "Loyalty Wallet"); 335 +// analyticsEvent.setParameter("screen", "Loyalty Wallet");
288 - EventBus.getDefault().post(new WarplyEventBusManager(analyticsEvent)); 336 +// EventBus.getDefault().post(new WarplyEventBusManager(analyticsEvent));
289 - 337 +//
290 - ActiveBoxCouponEventModel activeBoxEventModel = new ActiveBoxCouponEventModel(); 338 +// ActiveBoxCouponEventModel activeBoxEventModel = new ActiveBoxCouponEventModel();
291 - activeBoxEventModel.setPressed(true); 339 +// activeBoxEventModel.setPressed(true);
292 - EventBus.getDefault().post(new WarplyEventBusManager(activeBoxEventModel)); 340 +// EventBus.getDefault().post(new WarplyEventBusManager(activeBoxEventModel));
293 - } 341 +// }
294 - return; 342 +// return;
295 - } 343 +// }
296 /** Unified History */ 344 /** Unified History */
297 if (view.getId() == R.id.cl_market_inner) { 345 if (view.getId() == R.id.cl_market_inner) {
298 if (!mHistoryMarketPressed) { 346 if (!mHistoryMarketPressed) {
...@@ -344,23 +392,23 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener ...@@ -344,23 +392,23 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener
344 return; 392 return;
345 } 393 }
346 /** Active Deals Banner */ 394 /** Active Deals Banner */
347 - if (view.getId() == R.id.cl_mygifts || view.getId() == R.id.rv_deals_count) { 395 +// if (view.getId() == R.id.rv_deals_count) {
348 - if (!mDfyPressed) { 396 +// if (!mDfyPressed) {
349 - mDfyPressed = true; 397 +// mDfyPressed = true;
350 - WarplyAnalyticsManager.logTrackersEvent(getContext(), "click", ("LoyaltyWalletScreen") 398 +// WarplyAnalyticsManager.logTrackersEvent(getContext(), "click", ("LoyaltyWalletScreen")
351 - .concat(":") 399 +// .concat(":")
352 - .concat("ActiveDealsBanner")); 400 +// .concat("ActiveDealsBanner"));
353 - 401 +//
354 - LoyaltySDKFirebaseEventModel analyticsEvent = new LoyaltySDKFirebaseEventModel(); 402 +// LoyaltySDKFirebaseEventModel analyticsEvent = new LoyaltySDKFirebaseEventModel();
355 - analyticsEvent.setEventName("did_tap_deals_for_you_active_badge"); 403 +// analyticsEvent.setEventName("did_tap_deals_for_you_active_badge");
356 - analyticsEvent.setParameter("screen", "Loyalty Wallet"); 404 +// analyticsEvent.setParameter("screen", "Loyalty Wallet");
357 - EventBus.getDefault().post(new WarplyEventBusManager(analyticsEvent)); 405 +// EventBus.getDefault().post(new WarplyEventBusManager(analyticsEvent));
358 - 406 +//
359 - ActiveDFYCouponEventModel activeCouponEventModel = new ActiveDFYCouponEventModel(); 407 +// ActiveDFYCouponEventModel activeCouponEventModel = new ActiveDFYCouponEventModel();
360 - activeCouponEventModel.setPressed(true); 408 +// activeCouponEventModel.setPressed(true);
361 - EventBus.getDefault().post(new WarplyEventBusManager(activeCouponEventModel)); 409 +// EventBus.getDefault().post(new WarplyEventBusManager(activeCouponEventModel));
362 - } 410 +// }
363 - } 411 +// }
364 } 412 }
365 413
366 @Override 414 @Override
...@@ -442,11 +490,170 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener ...@@ -442,11 +490,170 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener
442 // Methods 490 // Methods
443 // =========================================================== 491 // ===========================================================
444 492
493 + private void defineAndSortTiles() {
494 + SortTileModel tileDeals = new SortTileModel();
495 + if (WarplyManagerHelper.getActiveDFYCoupons() != null && WarplyManagerHelper.getActiveDFYCoupons().size() > 0) {
496 + tileDeals.setCount(WarplyManagerHelper.getActiveDFYCoupons().size());
497 + tileDeals.setWeight(3);
498 + } else {
499 + tileDeals.setCount(0);
500 + tileDeals.setWeight(3);
501 + }
502 + mSortTileList.add(tileDeals);
503 +
504 + SortTileModel tileUnified = new SortTileModel();
505 + if (WarplyManagerHelper.getMarketCouponsList() != null && WarplyManagerHelper.getMarketCouponsList().size() > 0) {
506 + tileUnified.setCount(WarplyManagerHelper.getMarketCouponsList().size());
507 + tileUnified.setWeight(2);
508 + } else {
509 + tileUnified.setCount(0);
510 + tileUnified.setWeight(2);
511 + }
512 + mSortTileList.add(tileUnified);
513 +
514 + SortTileModel tileCoupons = new SortTileModel();
515 + if (WarplyManagerHelper.getCouponList() != null && WarplyManagerHelper.getCouponList().size() > 0) {
516 + tileCoupons.setCount(WarplyManagerHelper.getCouponList().size());
517 + tileCoupons.setWeight(1);
518 + } else {
519 + tileCoupons.setCount(0);
520 + tileCoupons.setWeight(1);
521 + }
522 + mSortTileList.add(tileCoupons);
523 +
524 + SortTileModel tileBoxCoupons = new SortTileModel();
525 + if (WarplyManagerHelper.getActiveBoxCoupons() != null && WarplyManagerHelper.getActiveBoxCoupons().size() > 0) {
526 + tileBoxCoupons.setCount(WarplyManagerHelper.getActiveBoxCoupons().size());
527 + tileBoxCoupons.setWeight(0);
528 + } else {
529 + tileBoxCoupons.setCount(0);
530 + tileBoxCoupons.setWeight(0);
531 + }
532 + mSortTileList.add(tileBoxCoupons);
533 +
534 + Collections.sort(mSortTileList, (o1, o2) -> {
535 + // First, compare by count in descending order
536 + int countComparison = Integer.compare(o2.getCount(), o1.getCount());
537 + if (countComparison != 0) {
538 + return countComparison;
539 + } else {
540 + // If count is the same, compare by weight in descending order
541 + return Integer.compare(o2.getWeight(), o1.getWeight());
542 + }
543 + });
544 + }
545 +
546 + private void createTiles() {
547 + if (getContext() != null || (getActivity() != null && !getActivity().isFinishing())) {
548 + if (mSortTileList != null && mSortTileList.size() > 0) {
549 + for (SortTileModel sortModel : mSortTileList) {
550 + /** Deals Badge */
551 + if (sortModel.getWeight() == 3) {
552 + View view = LayoutInflater.from(getContext()).inflate(R.layout.tile_active_dfy, mLlTilesParent, false);
553 + view.setOnClickListener(v -> {
554 + if (!mDfyPressed) {
555 + mDfyPressed = true;
556 + WarplyAnalyticsManager.logTrackersEvent(getContext(), "click", ("LoyaltyWalletScreen")
557 + .concat(":")
558 + .concat("ActiveDealsBanner"));
559 +
560 + LoyaltySDKFirebaseEventModel analyticsEvent = new LoyaltySDKFirebaseEventModel();
561 + analyticsEvent.setEventName("did_tap_deals_for_you_active_badge");
562 + analyticsEvent.setParameter("screen", "Loyalty Wallet");
563 + EventBus.getDefault().post(new WarplyEventBusManager(analyticsEvent));
564 +
565 + ActiveDFYCouponEventModel activeCouponEventModel = new ActiveDFYCouponEventModel();
566 + activeCouponEventModel.setPressed(true);
567 + EventBus.getDefault().post(new WarplyEventBusManager(activeCouponEventModel));
568 + }
569 + });
570 + mTvDealsCountBadge = (TextView) view.findViewById(R.id.tv_deals_count);
571 + mLlTilesParent.addView(view);
572 + }
573 + /** Unified Coupons List */
574 + else if (sortModel.getWeight() == 2) {
575 + View view = LayoutInflater.from(getContext()).inflate(R.layout.tile_active_unified, mLlTilesParent, false);
576 + view.setOnClickListener(v -> {
577 + if (!mUnifiedCountPressed) {
578 + mUnifiedCountPressed = true;
579 + WarplyAnalyticsManager.logTrackersEvent(getContext(), "click", ("LoyaltyWalletScreen")
580 + .concat(":")
581 + .concat("ActiveMarketBanner"));
582 +
583 + LoyaltySDKFirebaseEventModel analyticsEvent = new LoyaltySDKFirebaseEventModel();
584 + analyticsEvent.setEventName("did_tap_market_active_badge");
585 + analyticsEvent.setParameter("screen", "Loyalty Wallet");
586 + EventBus.getDefault().post(new WarplyEventBusManager(analyticsEvent));
587 +
588 + Intent intent = new Intent(getContext(), ActiveUnifiedCouponsActivity.class);
589 + startActivity(intent);
590 + }
591 + });
592 + mTvUnifiedCountBadge = (TextView) view.findViewById(R.id.tv_sm_count);
593 + mLlTilesParent.addView(view);
594 + }
595 + /** Coupon List */
596 + else if (sortModel.getWeight() == 1) {
597 + View view = LayoutInflater.from(getContext()).inflate(R.layout.tile_active_coupons, mLlTilesParent, false);
598 + view.setOnClickListener(v -> {
599 + if (!mGiftsCountPressed) {
600 + mGiftsCountPressed = true;
601 + WarplyAnalyticsManager.logTrackersEvent(getContext(), "click", ("LoyaltyWalletScreen")
602 + .concat(":")
603 + .concat("ActiveLoyaltyBanner"));
604 +
605 + LoyaltySDKFirebaseEventModel analyticsEvent = new LoyaltySDKFirebaseEventModel();
606 + analyticsEvent.setEventName("did_tap_gifts_for_you_active_badge");
607 + analyticsEvent.setParameter("screen", "Loyalty Wallet");
608 + EventBus.getDefault().post(new WarplyEventBusManager(analyticsEvent));
609 +
610 + Intent intent = new Intent(getContext(), ActiveCouponsActivity.class);
611 + startActivity(intent);
612 + }
613 + });
614 + mTvGiftsCountBadge = (TextView) view.findViewById(R.id.tv_gifts_count);
615 + mLlTilesParent.addView(view);
616 + }
617 + /** Box Badge */
618 + else if (sortModel.getWeight() == 0) {
619 + View view = LayoutInflater.from(getContext()).inflate(R.layout.tile_active_box, mLlTilesParent, false);
620 + view.setOnClickListener(v -> {
621 + if (!mBoxCountPressed) {
622 + mBoxCountPressed = true;
623 + WarplyAnalyticsManager.logTrackersEvent(getContext(), "click", ("LoyaltyWalletScreen")
624 + .concat(":")
625 + .concat("ActiveBoxBanner"));
626 +
627 + LoyaltySDKFirebaseEventModel analyticsEvent = new LoyaltySDKFirebaseEventModel();
628 + analyticsEvent.setEventName("did_tap_box_active_badge");
629 + analyticsEvent.setParameter("screen", "Loyalty Wallet");
630 + EventBus.getDefault().post(new WarplyEventBusManager(analyticsEvent));
631 +
632 + ActiveBoxCouponEventModel activeBoxEventModel = new ActiveBoxCouponEventModel();
633 + activeBoxEventModel.setPressed(true);
634 + EventBus.getDefault().post(new WarplyEventBusManager(activeBoxEventModel));
635 + }
636 + });
637 + mTvBoxCountBadge = (TextView) view.findViewById(R.id.tv_box_count);
638 + mLlTilesParent.addView(view);
639 + }
640 + }
641 + }
642 + }
643 + }
644 +
445 private void initViews() { 645 private void initViews() {
446 if (WarpUtils.getUserNonTelco(getContext())) { 646 if (WarpUtils.getUserNonTelco(getContext())) {
447 nonTelcoDialog(); 647 nonTelcoDialog();
448 } 648 }
449 649
650 + /** Deals Badge */
651 + if (WarplyManagerHelper.getActiveDFYCoupons() != null && WarplyManagerHelper.getActiveDFYCoupons().size() > 0)
652 + mTvDealsCountBadge.setText(String.valueOf(WarplyManagerHelper.getActiveDFYCoupons().size()));
653 + else
654 + mTvDealsCountBadge.setText("0");
655 + /** Deals Badge */
656 +
450 /** Unified Coupons List */ 657 /** Unified Coupons List */
451 if (WarplyManagerHelper.getMarketCouponsList() != null && WarplyManagerHelper.getMarketCouponsList().size() > 0) 658 if (WarplyManagerHelper.getMarketCouponsList() != null && WarplyManagerHelper.getMarketCouponsList().size() > 0)
452 mTvUnifiedCountBadge.setText(String.valueOf(WarplyManagerHelper.getMarketCouponsList().size())); 659 mTvUnifiedCountBadge.setText(String.valueOf(WarplyManagerHelper.getMarketCouponsList().size()));
...@@ -461,35 +668,13 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener ...@@ -461,35 +668,13 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener
461 mTvGiftsCountBadge.setText("0"); 668 mTvGiftsCountBadge.setText("0");
462 /** Coupon List */ 669 /** Coupon List */
463 670
464 - /** Deals Badge */
465 - if (WarplyManagerHelper.getActiveDFYCoupons() != null)
466 - mTvDealsCountBadge.setText(String.valueOf(WarplyManagerHelper.getActiveDFYCoupons().size()));
467 - else
468 - mTvDealsCountBadge.setText("0");
469 - /** Deals Badge */
470 -
471 /** Box Badge */ 671 /** Box Badge */
472 - if (WarplyManagerHelper.getActiveBoxCoupons() != null) 672 + if (WarplyManagerHelper.getActiveBoxCoupons() != null && WarplyManagerHelper.getActiveBoxCoupons().size() > 0)
473 mTvBoxCountBadge.setText(String.valueOf(WarplyManagerHelper.getActiveBoxCoupons().size())); 673 mTvBoxCountBadge.setText(String.valueOf(WarplyManagerHelper.getActiveBoxCoupons().size()));
474 else 674 else
475 mTvBoxCountBadge.setText("0"); 675 mTvBoxCountBadge.setText("0");
476 /** Deals Badge */ 676 /** Deals Badge */
477 677
478 -// if (WarplyManagerHelper.getConsumer() != null) {
479 -// if (!TextUtils.isEmpty(WarplyManagerHelper.getUserTag(getContext()))) {
480 -// mTvUserBadge.setText(WarplyManagerHelper.getUserTag(getContext()));
481 -// mLlQuestionnaire.setVisibility(View.GONE);
482 -// mLlUserBadge.setVisibility(View.VISIBLE);
483 -// } else {
484 -// mLlUserBadge.setVisibility(View.GONE);
485 -// mLlQuestionnaire.setVisibility(View.VISIBLE);
486 -// }
487 -// }
488 -
489 - /** History View */
490 -// checkHistoryEmpty();
491 - /** History View */
492 -
493 /** Empty View */ 678 /** Empty View */
494 checkForEmpty(); 679 checkForEmpty();
495 /** Empty View */ 680 /** Empty View */
...@@ -531,10 +716,10 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener ...@@ -531,10 +716,10 @@ public class MyRewardsFragment extends Fragment implements View.OnClickListener
531 mLlUserBadge.setOnClickListener(this); 716 mLlUserBadge.setOnClickListener(this);
532 mLlUserBadgeCentered.setOnClickListener(this); 717 mLlUserBadgeCentered.setOnClickListener(this);
533 mIvHistory.setOnClickListener(this); 718 mIvHistory.setOnClickListener(this);
534 - mRlDeals.setOnClickListener(this); 719 +// mRlDeals.setOnClickListener(this);
535 - mRlUnified.setOnClickListener(this); 720 +// mRlUnified.setOnClickListener(this);
536 - mRlGifts.setOnClickListener(this); 721 +// mRlGifts.setOnClickListener(this);
537 - mRlBox.setOnClickListener(this); 722 +// mRlBox.setOnClickListener(this);
538 mCvVouchers.setOnClickListener(this); 723 mCvVouchers.setOnClickListener(this);
539 mCvVouchersDisabled.setOnClickListener(this); 724 mCvVouchersDisabled.setOnClickListener(this);
540 } 725 }
......
1 +/*
2 + * Copyright 2010-2013 Warply Ltd. All rights reserved.
3 + *
4 + * Redistribution and use in source and binary forms, without modification, are
5 + * permitted provided that the following conditions are met:
6 + *
7 + * 1. Redistributions of source code must retain the above copyright notice,
8 + * this list of conditions and the following disclaimer.
9 + *
10 + * 2. Redistributions in binary form must reproduce the above copyright notice,
11 + * this list of conditions and the following disclaimer in the documentation
12 + * and/or other materials provided with the distribution.
13 + *
14 + * THIS SOFTWARE IS PROVIDED BY THE WARPLY LTD ``AS IS'' AND ANY EXPRESS OR
15 + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
16 + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
17 + * EVENT SHALL WARPLY LTD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
18 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
19 + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
20 + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
21 + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
22 + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
23 + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 + */
25 +
26 +package ly.warp.sdk.io.models;
27 +
28 +
29 +/**
30 + * Created by Panagiotis Triantafyllou on 01-May-24.
31 + */
32 +
33 +public class SortTileModel {
34 + private int count;
35 + private int weight;
36 +
37 + public SortTileModel() {
38 + this.count = 0;
39 + this.weight = 0;
40 + }
41 +
42 + public int getCount() {
43 + return count;
44 + }
45 +
46 + public void setCount(int count) {
47 + this.count = count;
48 + }
49 +
50 + public int getWeight() {
51 + return weight;
52 + }
53 +
54 + public void setWeight(int weight) {
55 + this.weight = weight;
56 + }
57 +}
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<shape xmlns:android="http://schemas.android.com/apk/res/android" >
3 + <size android:width="4dp"/>
4 + <solid android:color="#ffffff"/>
5 +</shape>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<shape
3 + xmlns:android="http://schemas.android.com/apk/res/android"
4 + android:shape="oval">
5 +
6 + <solid
7 + android:color="@color/cos_light_blue"/>
8 +
9 + <size
10 + android:width="24dp"
11 + android:height="24dp"/>
12 +</shape>
...\ No newline at end of file ...\ No newline at end of file
...@@ -49,364 +49,401 @@ ...@@ -49,364 +49,401 @@
49 app:layout_constraintStart_toStartOf="parent" 49 app:layout_constraintStart_toStartOf="parent"
50 app:layout_constraintTop_toTopOf="parent" /> 50 app:layout_constraintTop_toTopOf="parent" />
51 </LinearLayout> 51 </LinearLayout>
52 -
53 - <androidx.constraintlayout.widget.ConstraintLayout
54 - android:layout_width="match_parent"
55 - android:layout_height="wrap_content"
56 - android:layout_marginTop="18dp">
57 -
58 - <RelativeLayout
59 - android:id="@+id/rv_deals_count"
60 - android:layout_width="0dp"
61 - android:layout_height="104dp"
62 - app:layout_constraintBottom_toBottomOf="parent"
63 - app:layout_constraintEnd_toStartOf="@+id/rv_sm_count"
64 - app:layout_constraintStart_toStartOf="parent"
65 - app:layout_constraintTop_toTopOf="parent">
66 -
67 - <androidx.cardview.widget.CardView
68 - android:id="@+id/cv_deals_count"
69 - android:layout_width="match_parent"
70 - android:layout_height="match_parent"
71 - android:layout_marginHorizontal="2dp"
72 - android:layout_marginVertical="4dp"
73 - app:cardCornerRadius="16dp"
74 - app:cardElevation="2dp">
75 -
76 - <androidx.constraintlayout.widget.ConstraintLayout
77 - android:layout_width="match_parent"
78 - android:layout_height="match_parent"
79 - android:background="@color/white">
80 -
81 - <ImageView
82 - android:id="@+id/iv_deals_logo_count"
83 - android:layout_width="52dp"
84 - android:layout_height="32dp"
85 - android:src="@drawable/sv_deals_logo_redesign"
86 - app:layout_constraintBottom_toTopOf="@+id/v_separator_deals_count"
87 - app:layout_constraintEnd_toEndOf="parent"
88 - app:layout_constraintStart_toStartOf="parent"
89 - app:layout_constraintTop_toTopOf="parent" />
90 -
91 - <View
92 - android:id="@+id/v_separator_deals_count"
93 - android:layout_width="match_parent"
94 - android:layout_height="1dp"
95 - android:layout_marginHorizontal="8dp"
96 - android:background="@color/cos_grey2"
97 - app:layout_constraintBottom_toBottomOf="parent"
98 - app:layout_constraintEnd_toEndOf="parent"
99 - app:layout_constraintStart_toStartOf="parent"
100 - app:layout_constraintTop_toTopOf="parent" />
101 -
102 - <TextView
103 - android:id="@+id/tv_deals_count_title"
104 - fontPath="fonts/PeridotPE-SemiBold.ttf"
105 - android:layout_width="0dp"
106 - android:layout_height="wrap_content"
107 - android:layout_marginHorizontal="8dp"
108 - android:gravity="center"
109 - android:includeFontPadding="false"
110 - android:text="@string/cos_deals_title2"
111 - android:textColor="@color/cos_light_black"
112 - android:textSize="10sp"
113 - app:layout_constraintBottom_toBottomOf="parent"
114 - app:layout_constraintEnd_toEndOf="parent"
115 - app:layout_constraintStart_toStartOf="parent"
116 - app:layout_constraintTop_toBottomOf="@+id/v_separator_deals_count" />
117 - </androidx.constraintlayout.widget.ConstraintLayout>
118 - </androidx.cardview.widget.CardView>
119 -
120 - <LinearLayout
121 - android:layout_width="16dp"
122 - android:layout_height="16dp"
123 - android:layout_alignParentEnd="true"
124 - android:layout_marginTop="4dp"
125 - android:layout_marginEnd="1dp"
126 - android:background="@drawable/shape_cos_counter_orange"
127 - android:gravity="center"
128 - android:orientation="vertical"
129 - android:translationZ="2dp"
130 - app:layout_constraintEnd_toEndOf="parent"
131 - app:layout_constraintTop_toTopOf="parent">
132 -
133 - <TextView
134 - android:id="@+id/tv_deals_count"
135 - fontPath="fonts/PeridotPE-SemiBold.ttf"
136 - android:layout_width="wrap_content"
137 - android:layout_height="16dp"
138 - android:includeFontPadding="false"
139 - android:maxLines="1"
140 - android:textColor="@color/cos_light_black"
141 - android:textSize="12sp"
142 - tools:text="6" />
143 </LinearLayout> 52 </LinearLayout>
144 - </RelativeLayout>
145 -
146 - <RelativeLayout
147 - android:id="@+id/rv_sm_count"
148 - android:layout_width="0dp"
149 - android:layout_height="104dp"
150 - app:layout_constraintBottom_toBottomOf="parent"
151 - app:layout_constraintEnd_toStartOf="@+id/rv_gifts_count"
152 - app:layout_constraintStart_toEndOf="@+id/rv_deals_count"
153 - app:layout_constraintTop_toTopOf="parent">
154 -
155 - <androidx.cardview.widget.CardView
156 - android:id="@+id/cv_sm_count"
157 - android:layout_width="match_parent"
158 - android:layout_height="match_parent"
159 - android:layout_marginHorizontal="2dp"
160 - android:layout_marginVertical="4dp"
161 - app:cardCornerRadius="16dp"
162 - app:cardElevation="2dp">
163 -
164 - <androidx.constraintlayout.widget.ConstraintLayout
165 - android:layout_width="match_parent"
166 - android:layout_height="match_parent"
167 - android:background="@color/white">
168 53
169 - <ImageView 54 + <HorizontalScrollView
170 - android:id="@+id/iv_sm_logo_count" 55 + android:id="@+id/scr_tiles"
171 - android:layout_width="32dp"
172 - android:layout_height="32dp"
173 - android:src="@drawable/sv_unified_redesign"
174 - app:layout_constraintBottom_toTopOf="@+id/v_separator_sm_count"
175 - app:layout_constraintEnd_toEndOf="parent"
176 - app:layout_constraintStart_toStartOf="parent"
177 - app:layout_constraintTop_toTopOf="parent" />
178 -
179 - <View
180 - android:id="@+id/v_separator_sm_count"
181 android:layout_width="match_parent" 56 android:layout_width="match_parent"
182 - android:layout_height="1dp"
183 - android:layout_marginHorizontal="8dp"
184 - android:background="@color/cos_grey2"
185 - app:layout_constraintBottom_toBottomOf="parent"
186 - app:layout_constraintEnd_toEndOf="parent"
187 - app:layout_constraintStart_toStartOf="parent"
188 - app:layout_constraintTop_toTopOf="parent" />
189 -
190 - <TextView
191 - android:id="@+id/tv_sm_count_title"
192 - fontPath="fonts/PeridotPE-SemiBold.ttf"
193 - android:layout_width="0dp"
194 android:layout_height="wrap_content" 57 android:layout_height="wrap_content"
195 - android:layout_marginHorizontal="8dp" 58 + android:layout_marginTop="18dp"
196 - android:gravity="center" 59 + android:fillViewport="true"
197 - android:includeFontPadding="false" 60 + android:scrollbars="none">
198 - android:text="@string/cos_market_title"
199 - android:textColor="@color/cos_light_black"
200 - android:textSize="10sp"
201 - app:layout_constraintBottom_toBottomOf="parent"
202 - app:layout_constraintEnd_toEndOf="parent"
203 - app:layout_constraintStart_toStartOf="parent"
204 - app:layout_constraintTop_toBottomOf="@+id/v_separator_sm_count" />
205 - </androidx.constraintlayout.widget.ConstraintLayout>
206 - </androidx.cardview.widget.CardView>
207 61
208 <LinearLayout 62 <LinearLayout
209 - android:layout_width="16dp" 63 + android:id="@+id/ll_tiles_parent"
210 - android:layout_height="16dp"
211 - android:layout_alignParentEnd="true"
212 - android:layout_marginTop="4dp"
213 - android:layout_marginEnd="1dp"
214 - android:background="@drawable/shape_cos_counter_orange"
215 - android:gravity="center"
216 - android:orientation="vertical"
217 - android:translationZ="2dp"
218 - app:layout_constraintEnd_toEndOf="parent"
219 - app:layout_constraintTop_toTopOf="parent">
220 -
221 - <TextView
222 - android:id="@+id/tv_sm_count"
223 - fontPath="fonts/PeridotPE-SemiBold.ttf"
224 - android:layout_width="wrap_content"
225 - android:layout_height="16dp"
226 - android:includeFontPadding="false"
227 - android:maxLines="1"
228 - android:textColor="@color/cos_light_black"
229 - android:textSize="12sp"
230 - tools:text="6" />
231 - </LinearLayout>
232 - </RelativeLayout>
233 -
234 - <RelativeLayout
235 - android:id="@+id/rv_gifts_count"
236 - android:layout_width="0dp"
237 - android:layout_height="104dp"
238 - app:layout_constraintBottom_toBottomOf="parent"
239 - app:layout_constraintEnd_toStartOf="@+id/rv_box_count"
240 - app:layout_constraintStart_toEndOf="@+id/rv_sm_count"
241 - app:layout_constraintTop_toTopOf="parent">
242 -
243 - <androidx.cardview.widget.CardView
244 - android:id="@+id/cv_gifts_count"
245 - android:layout_width="match_parent"
246 - android:layout_height="match_parent"
247 - android:layout_marginHorizontal="2dp"
248 - android:layout_marginVertical="4dp"
249 - app:cardCornerRadius="16dp"
250 - app:cardElevation="2dp">
251 -
252 - <androidx.constraintlayout.widget.ConstraintLayout
253 - android:layout_width="match_parent"
254 - android:layout_height="match_parent"
255 - android:background="@color/white">
256 -
257 - <ImageView
258 - android:id="@+id/iv_gifts_logo_count"
259 - android:layout_width="34dp"
260 - android:layout_height="34dp"
261 - android:src="@drawable/sv_gifts_redesign"
262 - app:layout_constraintBottom_toTopOf="@+id/v_separator_gifts_count"
263 - app:layout_constraintEnd_toEndOf="parent"
264 - app:layout_constraintStart_toStartOf="parent"
265 - app:layout_constraintTop_toTopOf="parent" />
266 -
267 - <View
268 - android:id="@+id/v_separator_gifts_count"
269 android:layout_width="match_parent" 64 android:layout_width="match_parent"
270 - android:layout_height="1dp"
271 - android:layout_marginHorizontal="8dp"
272 - android:background="@color/cos_grey2"
273 - app:layout_constraintBottom_toBottomOf="parent"
274 - app:layout_constraintEnd_toEndOf="parent"
275 - app:layout_constraintStart_toStartOf="parent"
276 - app:layout_constraintTop_toTopOf="parent" />
277 -
278 - <TextView
279 - android:id="@+id/tv_gifts_count_title"
280 - fontPath="fonts/PeridotPE-SemiBold.ttf"
281 - android:layout_width="0dp"
282 android:layout_height="wrap_content" 65 android:layout_height="wrap_content"
283 - android:layout_marginHorizontal="8dp" 66 + android:clipToPadding="false"
284 - android:gravity="center" 67 + android:divider="@drawable/divider_vertical"
285 - android:includeFontPadding="false" 68 + android:orientation="horizontal"
286 - android:text="@string/cos_free_coupons" 69 + android:paddingHorizontal="14dp"
287 - android:textColor="@color/cos_light_black" 70 + android:showDividers="middle">
288 - android:textSize="10sp" 71 +
289 - app:layout_constraintBottom_toBottomOf="parent" 72 +<!-- <RelativeLayout-->
290 - app:layout_constraintEnd_toEndOf="parent" 73 +<!-- android:id="@+id/rv_deals_count"-->
291 - app:layout_constraintStart_toStartOf="parent" 74 +<!-- android:layout_width="104dp"-->
292 - app:layout_constraintTop_toBottomOf="@+id/v_separator_gifts_count" /> 75 +<!-- android:layout_height="104dp">-->
293 - </androidx.constraintlayout.widget.ConstraintLayout> 76 +
294 - </androidx.cardview.widget.CardView> 77 +<!-- <androidx.cardview.widget.CardView-->
295 - 78 +<!-- android:id="@+id/cv_deals_count"-->
296 - <LinearLayout 79 +<!-- android:layout_width="match_parent"-->
297 - android:layout_width="16dp" 80 +<!-- android:layout_height="match_parent"-->
298 - android:layout_height="16dp" 81 +<!-- android:layout_marginHorizontal="2dp"-->
299 - android:layout_alignParentEnd="true" 82 +<!-- android:layout_marginVertical="4dp"-->
300 - android:layout_marginTop="4dp" 83 +<!-- app:cardCornerRadius="16dp"-->
301 - android:layout_marginEnd="1dp" 84 +<!-- app:cardElevation="2dp">-->
302 - android:background="@drawable/shape_cos_counter_orange" 85 +
303 - android:gravity="center" 86 +<!-- <androidx.constraintlayout.widget.ConstraintLayout-->
304 - android:orientation="vertical" 87 +<!-- android:layout_width="match_parent"-->
305 - android:translationZ="2dp" 88 +<!-- android:layout_height="match_parent"-->
306 - app:layout_constraintEnd_toEndOf="parent" 89 +<!-- android:background="@color/white">-->
307 - app:layout_constraintTop_toTopOf="parent"> 90 +
308 - 91 +<!-- <ImageView-->
309 - <TextView 92 +<!-- android:id="@+id/iv_deals_logo_count"-->
310 - android:id="@+id/tv_gifts_count" 93 +<!-- android:layout_width="52dp"-->
311 - fontPath="fonts/PeridotPE-SemiBold.ttf" 94 +<!-- android:layout_height="32dp"-->
312 - android:layout_width="wrap_content" 95 +<!-- android:src="@drawable/sv_deals_logo_redesign"-->
313 - android:layout_height="16dp" 96 +<!-- app:layout_constraintBottom_toTopOf="@+id/v_separator_deals_count"-->
314 - android:includeFontPadding="false" 97 +<!-- app:layout_constraintEnd_toEndOf="parent"-->
315 - android:maxLines="1" 98 +<!-- app:layout_constraintStart_toStartOf="parent"-->
316 - android:textColor="@color/cos_light_black" 99 +<!-- app:layout_constraintTop_toTopOf="parent" />-->
317 - android:textSize="12sp" 100 +
318 - tools:text="6" /> 101 +<!-- <View-->
102 +<!-- android:id="@+id/v_separator_deals_count"-->
103 +<!-- android:layout_width="match_parent"-->
104 +<!-- android:layout_height="1dp"-->
105 +<!-- android:layout_marginHorizontal="8dp"-->
106 +<!-- android:background="@color/cos_grey2"-->
107 +<!-- app:layout_constraintBottom_toBottomOf="parent"-->
108 +<!-- app:layout_constraintEnd_toEndOf="parent"-->
109 +<!-- app:layout_constraintStart_toStartOf="parent"-->
110 +<!-- app:layout_constraintTop_toTopOf="parent" />-->
111 +
112 +<!-- <TextView-->
113 +<!-- android:id="@+id/tv_deals_count_title"-->
114 +<!-- fontPath="fonts/PeridotPE-SemiBold.ttf"-->
115 +<!-- android:layout_width="0dp"-->
116 +<!-- android:layout_height="wrap_content"-->
117 +<!-- android:layout_marginHorizontal="8dp"-->
118 +<!-- android:gravity="center"-->
119 +<!-- android:includeFontPadding="false"-->
120 +<!-- android:text="@string/cos_deals_tile"-->
121 +<!-- android:textColor="@color/cos_light_black"-->
122 +<!-- android:textSize="10sp"-->
123 +<!-- app:layout_constraintBottom_toBottomOf="parent"-->
124 +<!-- app:layout_constraintEnd_toEndOf="parent"-->
125 +<!-- app:layout_constraintStart_toStartOf="parent"-->
126 +<!-- app:layout_constraintTop_toBottomOf="@+id/v_separator_deals_count" />-->
127 +<!-- </androidx.constraintlayout.widget.ConstraintLayout>-->
128 +<!-- </androidx.cardview.widget.CardView>-->
129 +
130 +<!-- <LinearLayout-->
131 +<!-- android:layout_width="16dp"-->
132 +<!-- android:layout_height="16dp"-->
133 +<!-- android:layout_alignParentEnd="true"-->
134 +<!-- android:layout_marginTop="4dp"-->
135 +<!-- android:layout_marginEnd="1dp"-->
136 +<!-- android:background="@drawable/shape_cos_counter_orange"-->
137 +<!-- android:gravity="center"-->
138 +<!-- android:orientation="vertical"-->
139 +<!-- android:translationZ="2dp"-->
140 +<!-- app:layout_constraintEnd_toEndOf="parent"-->
141 +<!-- app:layout_constraintTop_toTopOf="parent">-->
142 +
143 +<!-- <TextView-->
144 +<!-- android:id="@+id/tv_deals_count"-->
145 +<!-- fontPath="fonts/PeridotPE-SemiBold.ttf"-->
146 +<!-- android:layout_width="wrap_content"-->
147 +<!-- android:layout_height="16dp"-->
148 +<!-- android:includeFontPadding="false"-->
149 +<!-- android:maxLines="1"-->
150 +<!-- android:textColor="@color/cos_light_black"-->
151 +<!-- android:textSize="12sp"-->
152 +<!-- tools:text="6" />-->
153 +<!-- </LinearLayout>-->
154 +<!-- </RelativeLayout>-->
155 +
156 +<!-- <RelativeLayout-->
157 +<!-- android:id="@+id/rv_sm_count"-->
158 +<!-- android:layout_width="104dp"-->
159 +<!-- android:layout_height="104dp">-->
160 +
161 +<!-- <androidx.cardview.widget.CardView-->
162 +<!-- android:id="@+id/cv_sm_count"-->
163 +<!-- android:layout_width="match_parent"-->
164 +<!-- android:layout_height="match_parent"-->
165 +<!-- android:layout_marginHorizontal="2dp"-->
166 +<!-- android:layout_marginVertical="4dp"-->
167 +<!-- app:cardCornerRadius="16dp"-->
168 +<!-- app:cardElevation="2dp">-->
169 +
170 +<!-- <androidx.constraintlayout.widget.ConstraintLayout-->
171 +<!-- android:layout_width="match_parent"-->
172 +<!-- android:layout_height="match_parent"-->
173 +<!-- android:background="@color/white">-->
174 +
175 +<!-- <ImageView-->
176 +<!-- android:id="@+id/iv_sm_logo_count"-->
177 +<!-- android:layout_width="32dp"-->
178 +<!-- android:layout_height="32dp"-->
179 +<!-- android:src="@drawable/sv_unified_redesign"-->
180 +<!-- app:layout_constraintBottom_toTopOf="@+id/v_separator_sm_count"-->
181 +<!-- app:layout_constraintEnd_toEndOf="parent"-->
182 +<!-- app:layout_constraintStart_toStartOf="parent"-->
183 +<!-- app:layout_constraintTop_toTopOf="parent" />-->
184 +
185 +<!-- <View-->
186 +<!-- android:id="@+id/v_separator_sm_count"-->
187 +<!-- android:layout_width="match_parent"-->
188 +<!-- android:layout_height="1dp"-->
189 +<!-- android:layout_marginHorizontal="8dp"-->
190 +<!-- android:background="@color/cos_grey2"-->
191 +<!-- app:layout_constraintBottom_toBottomOf="parent"-->
192 +<!-- app:layout_constraintEnd_toEndOf="parent"-->
193 +<!-- app:layout_constraintStart_toStartOf="parent"-->
194 +<!-- app:layout_constraintTop_toTopOf="parent" />-->
195 +
196 +<!-- <TextView-->
197 +<!-- android:id="@+id/tv_sm_count_title"-->
198 +<!-- fontPath="fonts/PeridotPE-SemiBold.ttf"-->
199 +<!-- android:layout_width="0dp"-->
200 +<!-- android:layout_height="wrap_content"-->
201 +<!-- android:layout_marginHorizontal="8dp"-->
202 +<!-- android:gravity="center"-->
203 +<!-- android:includeFontPadding="false"-->
204 +<!-- android:text="@string/cos_market_title"-->
205 +<!-- android:textColor="@color/cos_light_black"-->
206 +<!-- android:textSize="10sp"-->
207 +<!-- app:layout_constraintBottom_toBottomOf="parent"-->
208 +<!-- app:layout_constraintEnd_toEndOf="parent"-->
209 +<!-- app:layout_constraintStart_toStartOf="parent"-->
210 +<!-- app:layout_constraintTop_toBottomOf="@+id/v_separator_sm_count" />-->
211 +<!-- </androidx.constraintlayout.widget.ConstraintLayout>-->
212 +<!-- </androidx.cardview.widget.CardView>-->
213 +
214 +<!-- <LinearLayout-->
215 +<!-- android:layout_width="16dp"-->
216 +<!-- android:layout_height="16dp"-->
217 +<!-- android:layout_alignParentEnd="true"-->
218 +<!-- android:layout_marginTop="4dp"-->
219 +<!-- android:layout_marginEnd="1dp"-->
220 +<!-- android:background="@drawable/shape_cos_counter_orange"-->
221 +<!-- android:gravity="center"-->
222 +<!-- android:orientation="vertical"-->
223 +<!-- android:translationZ="2dp"-->
224 +<!-- app:layout_constraintEnd_toEndOf="parent"-->
225 +<!-- app:layout_constraintTop_toTopOf="parent">-->
226 +
227 +<!-- <TextView-->
228 +<!-- android:id="@+id/tv_sm_count"-->
229 +<!-- fontPath="fonts/PeridotPE-SemiBold.ttf"-->
230 +<!-- android:layout_width="wrap_content"-->
231 +<!-- android:layout_height="16dp"-->
232 +<!-- android:includeFontPadding="false"-->
233 +<!-- android:maxLines="1"-->
234 +<!-- android:textColor="@color/cos_light_black"-->
235 +<!-- android:textSize="12sp"-->
236 +<!-- tools:text="6" />-->
237 +<!-- </LinearLayout>-->
238 +<!-- </RelativeLayout>-->
239 +
240 +<!-- <RelativeLayout-->
241 +<!-- android:id="@+id/rv_gifts_count"-->
242 +<!-- android:layout_width="104dp"-->
243 +<!-- android:layout_height="104dp">-->
244 +
245 +<!-- <androidx.cardview.widget.CardView-->
246 +<!-- android:id="@+id/cv_gifts_count"-->
247 +<!-- android:layout_width="match_parent"-->
248 +<!-- android:layout_height="match_parent"-->
249 +<!-- android:layout_marginHorizontal="2dp"-->
250 +<!-- android:layout_marginVertical="4dp"-->
251 +<!-- app:cardCornerRadius="16dp"-->
252 +<!-- app:cardElevation="2dp">-->
253 +
254 +<!-- <androidx.constraintlayout.widget.ConstraintLayout-->
255 +<!-- android:layout_width="match_parent"-->
256 +<!-- android:layout_height="match_parent"-->
257 +<!-- android:background="@color/white">-->
258 +
259 +<!-- <ImageView-->
260 +<!-- android:id="@+id/iv_gifts_logo_count"-->
261 +<!-- android:layout_width="34dp"-->
262 +<!-- android:layout_height="34dp"-->
263 +<!-- android:src="@drawable/sv_gifts_redesign"-->
264 +<!-- app:layout_constraintBottom_toTopOf="@+id/v_separator_gifts_count"-->
265 +<!-- app:layout_constraintEnd_toEndOf="parent"-->
266 +<!-- app:layout_constraintStart_toStartOf="parent"-->
267 +<!-- app:layout_constraintTop_toTopOf="parent" />-->
268 +
269 +<!-- <View-->
270 +<!-- android:id="@+id/v_separator_gifts_count"-->
271 +<!-- android:layout_width="match_parent"-->
272 +<!-- android:layout_height="1dp"-->
273 +<!-- android:layout_marginHorizontal="8dp"-->
274 +<!-- android:background="@color/cos_grey2"-->
275 +<!-- app:layout_constraintBottom_toBottomOf="parent"-->
276 +<!-- app:layout_constraintEnd_toEndOf="parent"-->
277 +<!-- app:layout_constraintStart_toStartOf="parent"-->
278 +<!-- app:layout_constraintTop_toTopOf="parent" />-->
279 +
280 +<!-- <TextView-->
281 +<!-- android:id="@+id/tv_gifts_count_title"-->
282 +<!-- fontPath="fonts/PeridotPE-SemiBold.ttf"-->
283 +<!-- android:layout_width="0dp"-->
284 +<!-- android:layout_height="wrap_content"-->
285 +<!-- android:layout_marginHorizontal="8dp"-->
286 +<!-- android:gravity="center"-->
287 +<!-- android:includeFontPadding="false"-->
288 +<!-- android:text="@string/cos_free_coupons_tile"-->
289 +<!-- android:textColor="@color/cos_light_black"-->
290 +<!-- android:textSize="10sp"-->
291 +<!-- app:layout_constraintBottom_toBottomOf="parent"-->
292 +<!-- app:layout_constraintEnd_toEndOf="parent"-->
293 +<!-- app:layout_constraintStart_toStartOf="parent"-->
294 +<!-- app:layout_constraintTop_toBottomOf="@+id/v_separator_gifts_count" />-->
295 +<!-- </androidx.constraintlayout.widget.ConstraintLayout>-->
296 +<!-- </androidx.cardview.widget.CardView>-->
297 +
298 +<!-- <LinearLayout-->
299 +<!-- android:layout_width="16dp"-->
300 +<!-- android:layout_height="16dp"-->
301 +<!-- android:layout_alignParentEnd="true"-->
302 +<!-- android:layout_marginTop="4dp"-->
303 +<!-- android:layout_marginEnd="1dp"-->
304 +<!-- android:background="@drawable/shape_cos_counter_orange"-->
305 +<!-- android:gravity="center"-->
306 +<!-- android:orientation="vertical"-->
307 +<!-- android:translationZ="2dp"-->
308 +<!-- app:layout_constraintEnd_toEndOf="parent"-->
309 +<!-- app:layout_constraintTop_toTopOf="parent">-->
310 +
311 +<!-- <TextView-->
312 +<!-- android:id="@+id/tv_gifts_count"-->
313 +<!-- fontPath="fonts/PeridotPE-SemiBold.ttf"-->
314 +<!-- android:layout_width="wrap_content"-->
315 +<!-- android:layout_height="16dp"-->
316 +<!-- android:includeFontPadding="false"-->
317 +<!-- android:maxLines="1"-->
318 +<!-- android:textColor="@color/cos_light_black"-->
319 +<!-- android:textSize="12sp"-->
320 +<!-- tools:text="6" />-->
321 +<!-- </LinearLayout>-->
322 +<!-- </RelativeLayout>-->
323 +
324 +<!-- <RelativeLayout-->
325 +<!-- android:id="@+id/rv_box_count"-->
326 +<!-- android:layout_width="104dp"-->
327 +<!-- android:layout_height="104dp">-->
328 +
329 +<!-- <androidx.cardview.widget.CardView-->
330 +<!-- android:id="@+id/cv_box_count"-->
331 +<!-- android:layout_width="match_parent"-->
332 +<!-- android:layout_height="match_parent"-->
333 +<!-- android:layout_marginHorizontal="2dp"-->
334 +<!-- android:layout_marginVertical="4dp"-->
335 +<!-- app:cardCornerRadius="16dp"-->
336 +<!-- app:cardElevation="2dp">-->
337 +
338 +<!-- <androidx.constraintlayout.widget.ConstraintLayout-->
339 +<!-- android:layout_width="match_parent"-->
340 +<!-- android:layout_height="match_parent"-->
341 +<!-- android:background="@color/white">-->
342 +
343 +<!-- <ImageView-->
344 +<!-- android:id="@+id/iv_box_logo_count"-->
345 +<!-- android:layout_width="34dp"-->
346 +<!-- android:layout_height="34dp"-->
347 +<!-- android:src="@drawable/sv_box_logo"-->
348 +<!-- app:layout_constraintBottom_toTopOf="@+id/v_separator_box_count"-->
349 +<!-- app:layout_constraintEnd_toEndOf="parent"-->
350 +<!-- app:layout_constraintStart_toStartOf="parent"-->
351 +<!-- app:layout_constraintTop_toTopOf="parent" />-->
352 +
353 +<!-- <View-->
354 +<!-- android:id="@+id/v_separator_box_count"-->
355 +<!-- android:layout_width="match_parent"-->
356 +<!-- android:layout_height="1dp"-->
357 +<!-- android:layout_marginHorizontal="8dp"-->
358 +<!-- android:background="@color/cos_grey2"-->
359 +<!-- app:layout_constraintBottom_toBottomOf="parent"-->
360 +<!-- app:layout_constraintEnd_toEndOf="parent"-->
361 +<!-- app:layout_constraintStart_toStartOf="parent"-->
362 +<!-- app:layout_constraintTop_toTopOf="parent" />-->
363 +
364 +<!-- <TextView-->
365 +<!-- android:id="@+id/tv_box_count_title"-->
366 +<!-- fontPath="fonts/PeridotPE-SemiBold.ttf"-->
367 +<!-- android:layout_width="0dp"-->
368 +<!-- android:layout_height="wrap_content"-->
369 +<!-- android:layout_marginHorizontal="8dp"-->
370 +<!-- android:gravity="center"-->
371 +<!-- android:includeFontPadding="false"-->
372 +<!-- android:text="@string/cos_box_tile"-->
373 +<!-- android:textColor="@color/cos_light_black"-->
374 +<!-- android:textSize="10sp"-->
375 +<!-- app:layout_constraintBottom_toBottomOf="parent"-->
376 +<!-- app:layout_constraintEnd_toEndOf="parent"-->
377 +<!-- app:layout_constraintStart_toStartOf="parent"-->
378 +<!-- app:layout_constraintTop_toBottomOf="@+id/v_separator_box_count" />-->
379 +<!-- </androidx.constraintlayout.widget.ConstraintLayout>-->
380 +<!-- </androidx.cardview.widget.CardView>-->
381 +
382 +<!-- <LinearLayout-->
383 +<!-- android:layout_width="16dp"-->
384 +<!-- android:layout_height="16dp"-->
385 +<!-- android:layout_alignParentEnd="true"-->
386 +<!-- android:layout_marginTop="4dp"-->
387 +<!-- android:layout_marginEnd="1dp"-->
388 +<!-- android:background="@drawable/shape_cos_counter_orange"-->
389 +<!-- android:gravity="center"-->
390 +<!-- android:orientation="vertical"-->
391 +<!-- android:translationZ="2dp"-->
392 +<!-- app:layout_constraintEnd_toEndOf="parent"-->
393 +<!-- app:layout_constraintTop_toTopOf="parent">-->
394 +
395 +<!-- <TextView-->
396 +<!-- android:id="@+id/tv_box_count"-->
397 +<!-- fontPath="fonts/PeridotPE-SemiBold.ttf"-->
398 +<!-- android:layout_width="wrap_content"-->
399 +<!-- android:layout_height="16dp"-->
400 +<!-- android:includeFontPadding="false"-->
401 +<!-- android:maxLines="1"-->
402 +<!-- android:textColor="@color/cos_light_black"-->
403 +<!-- android:textSize="12sp"-->
404 +<!-- tools:text="6" />-->
405 +<!-- </LinearLayout>-->
406 +<!-- </RelativeLayout>-->
319 </LinearLayout> 407 </LinearLayout>
320 - </RelativeLayout> 408 + </HorizontalScrollView>
321 -
322 - <RelativeLayout
323 - android:id="@+id/rv_box_count"
324 - android:layout_width="0dp"
325 - android:layout_height="104dp"
326 - app:layout_constraintBottom_toBottomOf="parent"
327 - app:layout_constraintEnd_toEndOf="parent"
328 - app:layout_constraintStart_toEndOf="@+id/rv_gifts_count"
329 - app:layout_constraintTop_toTopOf="parent">
330 409
331 - <androidx.cardview.widget.CardView 410 + <LinearLayout
332 - android:id="@+id/cv_box_count"
333 - android:layout_width="match_parent"
334 - android:layout_height="match_parent"
335 - android:layout_marginHorizontal="2dp"
336 - android:layout_marginVertical="4dp"
337 - app:cardCornerRadius="16dp"
338 - app:cardElevation="2dp">
339 -
340 - <androidx.constraintlayout.widget.ConstraintLayout
341 android:layout_width="match_parent" 411 android:layout_width="match_parent"
342 - android:layout_height="match_parent" 412 + android:layout_height="wrap_content"
343 - android:background="@color/white"> 413 + android:layout_marginTop="20dp"
414 + android:orientation="horizontal"
415 + android:gravity="center">
344 416
345 - <ImageView 417 + <View
346 - android:id="@+id/iv_box_logo_count" 418 + android:id="@+id/v_first_start"
347 - android:layout_width="34dp" 419 + android:layout_width="12dp"
348 - android:layout_height="34dp" 420 + android:layout_height="12dp"
349 - android:src="@drawable/sv_box_logo" 421 + android:background="@drawable/shape_indicator"/>
350 - app:layout_constraintBottom_toTopOf="@+id/v_separator_box_count"
351 - app:layout_constraintEnd_toEndOf="parent"
352 - app:layout_constraintStart_toStartOf="parent"
353 - app:layout_constraintTop_toTopOf="parent" />
354 422
355 <View 423 <View
356 - android:id="@+id/v_separator_box_count" 424 + android:id="@+id/v_first_end"
357 - android:layout_width="match_parent" 425 + android:layout_width="8dp"
358 - android:layout_height="1dp" 426 + android:layout_height="8dp"
359 - android:layout_marginHorizontal="8dp" 427 + android:visibility="gone"
360 - android:background="@color/cos_grey2" 428 + android:background="@drawable/shape_indicator"/>
361 - app:layout_constraintBottom_toBottomOf="parent"
362 - app:layout_constraintEnd_toEndOf="parent"
363 - app:layout_constraintStart_toStartOf="parent"
364 - app:layout_constraintTop_toTopOf="parent" />
365 429
366 - <TextView 430 + <View
367 - android:id="@+id/tv_box_count_title" 431 + android:layout_width="6dp"
368 - fontPath="fonts/PeridotPE-SemiBold.ttf" 432 + android:layout_height="12dp"
369 - android:layout_width="0dp" 433 + android:background="@drawable/divider_vertical"/>
370 - android:layout_height="wrap_content"
371 - android:layout_marginHorizontal="8dp"
372 - android:gravity="center"
373 - android:includeFontPadding="false"
374 - android:text="@string/cos_box"
375 - android:textColor="@color/cos_light_black"
376 - android:textSize="10sp"
377 - app:layout_constraintBottom_toBottomOf="parent"
378 - app:layout_constraintEnd_toEndOf="parent"
379 - app:layout_constraintStart_toStartOf="parent"
380 - app:layout_constraintTop_toBottomOf="@+id/v_separator_box_count" />
381 - </androidx.constraintlayout.widget.ConstraintLayout>
382 - </androidx.cardview.widget.CardView>
383 434
384 - <LinearLayout 435 + <View
385 - android:layout_width="16dp" 436 + android:id="@+id/v_second_start"
386 - android:layout_height="16dp" 437 + android:layout_width="12dp"
387 - android:layout_alignParentEnd="true" 438 + android:layout_height="12dp"
388 - android:layout_marginTop="4dp" 439 + android:visibility="gone"
389 - android:layout_marginEnd="1dp" 440 + android:background="@drawable/shape_indicator"/>
390 - android:background="@drawable/shape_cos_counter_orange"
391 - android:gravity="center"
392 - android:orientation="vertical"
393 - android:translationZ="2dp"
394 - app:layout_constraintEnd_toEndOf="parent"
395 - app:layout_constraintTop_toTopOf="parent">
396 441
397 - <TextView 442 + <View
398 - android:id="@+id/tv_box_count" 443 + android:id="@+id/v_second_end"
399 - fontPath="fonts/PeridotPE-SemiBold.ttf" 444 + android:layout_width="8dp"
400 - android:layout_width="wrap_content" 445 + android:layout_height="8dp"
401 - android:layout_height="16dp" 446 + android:background="@drawable/shape_indicator"/>
402 - android:includeFontPadding="false"
403 - android:maxLines="1"
404 - android:textColor="@color/cos_light_black"
405 - android:textSize="12sp"
406 - tools:text="6" />
407 - </LinearLayout>
408 - </RelativeLayout>
409 - </androidx.constraintlayout.widget.ConstraintLayout>
410 </LinearLayout> 447 </LinearLayout>
411 448
412 <LinearLayout 449 <LinearLayout
......
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + xmlns:app="http://schemas.android.com/apk/res-auto"
4 + xmlns:tools="http://schemas.android.com/tools"
5 + android:id="@+id/rv_box_count"
6 + android:layout_width="104dp"
7 + android:layout_height="104dp">
8 +
9 + <androidx.cardview.widget.CardView
10 + android:id="@+id/cv_box_count"
11 + android:layout_width="match_parent"
12 + android:layout_height="match_parent"
13 + android:layout_marginHorizontal="2dp"
14 + android:layout_marginVertical="4dp"
15 + app:cardCornerRadius="16dp"
16 + app:cardElevation="2dp">
17 +
18 + <androidx.constraintlayout.widget.ConstraintLayout
19 + android:layout_width="match_parent"
20 + android:layout_height="match_parent"
21 + android:background="@color/white">
22 +
23 + <ImageView
24 + android:id="@+id/iv_box_logo_count"
25 + android:layout_width="34dp"
26 + android:layout_height="34dp"
27 + android:src="@drawable/sv_box_logo"
28 + app:layout_constraintBottom_toTopOf="@+id/v_separator_box_count"
29 + app:layout_constraintEnd_toEndOf="parent"
30 + app:layout_constraintStart_toStartOf="parent"
31 + app:layout_constraintTop_toTopOf="parent" />
32 +
33 + <View
34 + android:id="@+id/v_separator_box_count"
35 + android:layout_width="match_parent"
36 + android:layout_height="1dp"
37 + android:layout_marginHorizontal="8dp"
38 + android:background="@color/cos_grey2"
39 + app:layout_constraintBottom_toBottomOf="parent"
40 + app:layout_constraintEnd_toEndOf="parent"
41 + app:layout_constraintStart_toStartOf="parent"
42 + app:layout_constraintTop_toTopOf="parent" />
43 +
44 + <TextView
45 + android:id="@+id/tv_box_count_title"
46 + fontPath="fonts/PeridotPE-SemiBold.ttf"
47 + android:layout_width="0dp"
48 + android:layout_height="wrap_content"
49 + android:layout_marginHorizontal="8dp"
50 + android:gravity="center"
51 + android:includeFontPadding="false"
52 + android:text="@string/cos_box_tile"
53 + android:textColor="@color/cos_light_black"
54 + android:textSize="10sp"
55 + app:layout_constraintBottom_toBottomOf="parent"
56 + app:layout_constraintEnd_toEndOf="parent"
57 + app:layout_constraintStart_toStartOf="parent"
58 + app:layout_constraintTop_toBottomOf="@+id/v_separator_box_count" />
59 + </androidx.constraintlayout.widget.ConstraintLayout>
60 + </androidx.cardview.widget.CardView>
61 +
62 + <LinearLayout
63 + android:layout_width="16dp"
64 + android:layout_height="16dp"
65 + android:layout_alignParentEnd="true"
66 + android:layout_marginTop="4dp"
67 + android:layout_marginEnd="1dp"
68 + android:background="@drawable/shape_cos_counter_orange"
69 + android:gravity="center"
70 + android:orientation="vertical"
71 + android:translationZ="2dp"
72 + app:layout_constraintEnd_toEndOf="parent"
73 + app:layout_constraintTop_toTopOf="parent">
74 +
75 + <TextView
76 + android:id="@+id/tv_box_count"
77 + fontPath="fonts/PeridotPE-SemiBold.ttf"
78 + android:layout_width="wrap_content"
79 + android:layout_height="16dp"
80 + android:includeFontPadding="false"
81 + android:maxLines="1"
82 + android:textColor="@color/cos_light_black"
83 + android:textSize="12sp"
84 + tools:text="6" />
85 + </LinearLayout>
86 +</RelativeLayout>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + xmlns:app="http://schemas.android.com/apk/res-auto"
4 + xmlns:tools="http://schemas.android.com/tools"
5 + android:id="@+id/rv_gifts_count"
6 + android:layout_width="104dp"
7 + android:layout_height="104dp">
8 +
9 + <androidx.cardview.widget.CardView
10 + android:id="@+id/cv_gifts_count"
11 + android:layout_width="match_parent"
12 + android:layout_height="match_parent"
13 + android:layout_marginHorizontal="2dp"
14 + android:layout_marginVertical="4dp"
15 + app:cardCornerRadius="16dp"
16 + app:cardElevation="2dp">
17 +
18 + <androidx.constraintlayout.widget.ConstraintLayout
19 + android:layout_width="match_parent"
20 + android:layout_height="match_parent"
21 + android:background="@color/white">
22 +
23 + <ImageView
24 + android:id="@+id/iv_gifts_logo_count"
25 + android:layout_width="34dp"
26 + android:layout_height="34dp"
27 + android:src="@drawable/sv_gifts_redesign"
28 + app:layout_constraintBottom_toTopOf="@+id/v_separator_gifts_count"
29 + app:layout_constraintEnd_toEndOf="parent"
30 + app:layout_constraintStart_toStartOf="parent"
31 + app:layout_constraintTop_toTopOf="parent" />
32 +
33 + <View
34 + android:id="@+id/v_separator_gifts_count"
35 + android:layout_width="match_parent"
36 + android:layout_height="1dp"
37 + android:layout_marginHorizontal="8dp"
38 + android:background="@color/cos_grey2"
39 + app:layout_constraintBottom_toBottomOf="parent"
40 + app:layout_constraintEnd_toEndOf="parent"
41 + app:layout_constraintStart_toStartOf="parent"
42 + app:layout_constraintTop_toTopOf="parent" />
43 +
44 + <TextView
45 + android:id="@+id/tv_gifts_count_title"
46 + fontPath="fonts/PeridotPE-SemiBold.ttf"
47 + android:layout_width="0dp"
48 + android:layout_height="wrap_content"
49 + android:layout_marginHorizontal="8dp"
50 + android:gravity="center"
51 + android:includeFontPadding="false"
52 + android:text="@string/cos_free_coupons_tile"
53 + android:textColor="@color/cos_light_black"
54 + android:textSize="10sp"
55 + app:layout_constraintBottom_toBottomOf="parent"
56 + app:layout_constraintEnd_toEndOf="parent"
57 + app:layout_constraintStart_toStartOf="parent"
58 + app:layout_constraintTop_toBottomOf="@+id/v_separator_gifts_count" />
59 + </androidx.constraintlayout.widget.ConstraintLayout>
60 + </androidx.cardview.widget.CardView>
61 +
62 + <LinearLayout
63 + android:layout_width="16dp"
64 + android:layout_height="16dp"
65 + android:layout_alignParentEnd="true"
66 + android:layout_marginTop="4dp"
67 + android:layout_marginEnd="1dp"
68 + android:background="@drawable/shape_cos_counter_orange"
69 + android:gravity="center"
70 + android:orientation="vertical"
71 + android:translationZ="2dp"
72 + app:layout_constraintEnd_toEndOf="parent"
73 + app:layout_constraintTop_toTopOf="parent">
74 +
75 + <TextView
76 + android:id="@+id/tv_gifts_count"
77 + fontPath="fonts/PeridotPE-SemiBold.ttf"
78 + android:layout_width="wrap_content"
79 + android:layout_height="16dp"
80 + android:includeFontPadding="false"
81 + android:maxLines="1"
82 + android:textColor="@color/cos_light_black"
83 + android:textSize="12sp"
84 + tools:text="6" />
85 + </LinearLayout>
86 +</RelativeLayout>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + xmlns:app="http://schemas.android.com/apk/res-auto"
4 + xmlns:tools="http://schemas.android.com/tools"
5 + android:id="@+id/rv_deals_count"
6 + android:layout_width="104dp"
7 + android:layout_height="104dp">
8 +
9 + <androidx.cardview.widget.CardView
10 + android:id="@+id/cv_deals_count"
11 + android:layout_width="match_parent"
12 + android:layout_height="match_parent"
13 + android:layout_marginHorizontal="2dp"
14 + android:layout_marginVertical="4dp"
15 + app:cardCornerRadius="16dp"
16 + app:cardElevation="2dp">
17 +
18 + <androidx.constraintlayout.widget.ConstraintLayout
19 + android:layout_width="match_parent"
20 + android:layout_height="match_parent"
21 + android:background="@color/white">
22 +
23 + <ImageView
24 + android:id="@+id/iv_deals_logo_count"
25 + android:layout_width="52dp"
26 + android:layout_height="32dp"
27 + android:src="@drawable/sv_deals_logo_redesign"
28 + app:layout_constraintBottom_toTopOf="@+id/v_separator_deals_count"
29 + app:layout_constraintEnd_toEndOf="parent"
30 + app:layout_constraintStart_toStartOf="parent"
31 + app:layout_constraintTop_toTopOf="parent" />
32 +
33 + <View
34 + android:id="@+id/v_separator_deals_count"
35 + android:layout_width="match_parent"
36 + android:layout_height="1dp"
37 + android:layout_marginHorizontal="8dp"
38 + android:background="@color/cos_grey2"
39 + app:layout_constraintBottom_toBottomOf="parent"
40 + app:layout_constraintEnd_toEndOf="parent"
41 + app:layout_constraintStart_toStartOf="parent"
42 + app:layout_constraintTop_toTopOf="parent" />
43 +
44 + <TextView
45 + android:id="@+id/tv_deals_count_title"
46 + fontPath="fonts/PeridotPE-SemiBold.ttf"
47 + android:layout_width="0dp"
48 + android:layout_height="wrap_content"
49 + android:layout_marginHorizontal="8dp"
50 + android:gravity="center"
51 + android:includeFontPadding="false"
52 + android:text="@string/cos_deals_tile"
53 + android:textColor="@color/cos_light_black"
54 + android:textSize="10sp"
55 + app:layout_constraintBottom_toBottomOf="parent"
56 + app:layout_constraintEnd_toEndOf="parent"
57 + app:layout_constraintStart_toStartOf="parent"
58 + app:layout_constraintTop_toBottomOf="@+id/v_separator_deals_count" />
59 + </androidx.constraintlayout.widget.ConstraintLayout>
60 + </androidx.cardview.widget.CardView>
61 +
62 + <LinearLayout
63 + android:layout_width="16dp"
64 + android:layout_height="16dp"
65 + android:layout_alignParentEnd="true"
66 + android:layout_marginTop="4dp"
67 + android:layout_marginEnd="1dp"
68 + android:background="@drawable/shape_cos_counter_orange"
69 + android:gravity="center"
70 + android:orientation="vertical"
71 + android:translationZ="2dp"
72 + app:layout_constraintEnd_toEndOf="parent"
73 + app:layout_constraintTop_toTopOf="parent">
74 +
75 + <TextView
76 + android:id="@+id/tv_deals_count"
77 + fontPath="fonts/PeridotPE-SemiBold.ttf"
78 + android:layout_width="wrap_content"
79 + android:layout_height="16dp"
80 + android:includeFontPadding="false"
81 + android:maxLines="1"
82 + android:textColor="@color/cos_light_black"
83 + android:textSize="12sp"
84 + tools:text="6" />
85 + </LinearLayout>
86 +</RelativeLayout>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + xmlns:app="http://schemas.android.com/apk/res-auto"
4 + xmlns:tools="http://schemas.android.com/tools"
5 + android:id="@+id/rv_sm_count"
6 + android:layout_width="104dp"
7 + android:layout_height="104dp">
8 +
9 + <androidx.cardview.widget.CardView
10 + android:id="@+id/cv_sm_count"
11 + android:layout_width="match_parent"
12 + android:layout_height="match_parent"
13 + android:layout_marginHorizontal="2dp"
14 + android:layout_marginVertical="4dp"
15 + app:cardCornerRadius="16dp"
16 + app:cardElevation="2dp">
17 +
18 + <androidx.constraintlayout.widget.ConstraintLayout
19 + android:layout_width="match_parent"
20 + android:layout_height="match_parent"
21 + android:background="@color/white">
22 +
23 + <ImageView
24 + android:id="@+id/iv_sm_logo_count"
25 + android:layout_width="32dp"
26 + android:layout_height="32dp"
27 + android:src="@drawable/sv_unified_redesign"
28 + app:layout_constraintBottom_toTopOf="@+id/v_separator_sm_count"
29 + app:layout_constraintEnd_toEndOf="parent"
30 + app:layout_constraintStart_toStartOf="parent"
31 + app:layout_constraintTop_toTopOf="parent" />
32 +
33 + <View
34 + android:id="@+id/v_separator_sm_count"
35 + android:layout_width="match_parent"
36 + android:layout_height="1dp"
37 + android:layout_marginHorizontal="8dp"
38 + android:background="@color/cos_grey2"
39 + app:layout_constraintBottom_toBottomOf="parent"
40 + app:layout_constraintEnd_toEndOf="parent"
41 + app:layout_constraintStart_toStartOf="parent"
42 + app:layout_constraintTop_toTopOf="parent" />
43 +
44 + <TextView
45 + android:id="@+id/tv_sm_count_title"
46 + fontPath="fonts/PeridotPE-SemiBold.ttf"
47 + android:layout_width="0dp"
48 + android:layout_height="wrap_content"
49 + android:layout_marginHorizontal="8dp"
50 + android:gravity="center"
51 + android:includeFontPadding="false"
52 + android:text="@string/cos_market_title"
53 + android:textColor="@color/cos_light_black"
54 + android:textSize="10sp"
55 + app:layout_constraintBottom_toBottomOf="parent"
56 + app:layout_constraintEnd_toEndOf="parent"
57 + app:layout_constraintStart_toStartOf="parent"
58 + app:layout_constraintTop_toBottomOf="@+id/v_separator_sm_count" />
59 + </androidx.constraintlayout.widget.ConstraintLayout>
60 + </androidx.cardview.widget.CardView>
61 +
62 + <LinearLayout
63 + android:layout_width="16dp"
64 + android:layout_height="16dp"
65 + android:layout_alignParentEnd="true"
66 + android:layout_marginTop="4dp"
67 + android:layout_marginEnd="1dp"
68 + android:background="@drawable/shape_cos_counter_orange"
69 + android:gravity="center"
70 + android:orientation="vertical"
71 + android:translationZ="2dp"
72 + app:layout_constraintEnd_toEndOf="parent"
73 + app:layout_constraintTop_toTopOf="parent">
74 +
75 + <TextView
76 + android:id="@+id/tv_sm_count"
77 + fontPath="fonts/PeridotPE-SemiBold.ttf"
78 + android:layout_width="wrap_content"
79 + android:layout_height="16dp"
80 + android:includeFontPadding="false"
81 + android:maxLines="1"
82 + android:textColor="@color/cos_light_black"
83 + android:textSize="12sp"
84 + tools:text="6" />
85 + </LinearLayout>
86 +</RelativeLayout>
...\ No newline at end of file ...\ No newline at end of file
...@@ -16,11 +16,14 @@ ...@@ -16,11 +16,14 @@
16 <string name="cos_profile_title">My Rewards</string> 16 <string name="cos_profile_title">My Rewards</string>
17 <string name="cos_deals_title">Deals for You</string> 17 <string name="cos_deals_title">Deals for You</string>
18 <string name="cos_deals_title2">DEALS FOR YOU</string> 18 <string name="cos_deals_title2">DEALS FOR YOU</string>
19 + <string name="cos_deals_tile">DEALS FOR YOU\n</string>
19 <string name="cos_profile_more">Δες περισσότερα</string> 20 <string name="cos_profile_more">Δες περισσότερα</string>
20 <string name="cos_gifts_title">GIFTS FOR YOU</string> 21 <string name="cos_gifts_title">GIFTS FOR YOU</string>
21 <string name="cos_more_title">MORE FOR YOU</string> 22 <string name="cos_more_title">MORE FOR YOU</string>
22 <string name="cos_free_coupons">FREE COUPONS</string> 23 <string name="cos_free_coupons">FREE COUPONS</string>
24 + <string name="cos_free_coupons_tile">FREE COUPONS\n</string>
23 <string name="cos_box">BOX</string> 25 <string name="cos_box">BOX</string>
26 + <string name="cos_box_tile">BOX\n</string>
24 <string name="menu_home">Αρχική</string> 27 <string name="menu_home">Αρχική</string>
25 <string name="menu_explore">Ανακάλυψε</string> 28 <string name="menu_explore">Ανακάλυψε</string>
26 <string name="menu_shop">Shop</string> 29 <string name="menu_shop">Shop</string>
......