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
......
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
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>
......