thkouk00

Merge branch 'cosmote' of https://git.warp.ly/open-source/warply_android_sdk_mav…

…en_plugin into cosmote
...@@ -5,7 +5,15 @@ import android.os.Bundle; ...@@ -5,7 +5,15 @@ import android.os.Bundle;
5 import android.view.View; 5 import android.view.View;
6 import android.widget.ImageView; 6 import android.widget.ImageView;
7 7
8 +import androidx.recyclerview.widget.LinearLayoutManager;
9 +import androidx.recyclerview.widget.RecyclerView;
10 +
11 +import org.json.JSONException;
12 +
8 import ly.warp.sdk.R; 13 import ly.warp.sdk.R;
14 +import ly.warp.sdk.io.models.Coupon;
15 +import ly.warp.sdk.io.models.CouponList;
16 +import ly.warp.sdk.views.adapters.HomeCouponAdapter;
9 17
10 18
11 public class LoyaltyActivity extends Activity implements View.OnClickListener { 19 public class LoyaltyActivity extends Activity implements View.OnClickListener {
...@@ -19,6 +27,8 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener { ...@@ -19,6 +27,8 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener {
19 // =========================================================== 27 // ===========================================================
20 28
21 private ImageView mIvBack; 29 private ImageView mIvBack;
30 + private RecyclerView mRecyclerCoupons;
31 + private HomeCouponAdapter mAdapterCoupons;
22 32
23 // =========================================================== 33 // ===========================================================
24 // Methods for/from SuperClass/Interfaces 34 // Methods for/from SuperClass/Interfaces
...@@ -31,6 +41,28 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener { ...@@ -31,6 +41,28 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener {
31 41
32 mIvBack = findViewById(R.id.iv_back); 42 mIvBack = findViewById(R.id.iv_back);
33 43
44 + /********* TEST COUPONS DATA **********/
45 + CouponList clist = new CouponList();
46 + try {
47 + clist.add(new Coupon("{\"barcode\": \"a724e911a71a42408b6ba50ae6c08dbb\", \"coupon\": \"123456789\", \"name\": \"\\u039a\\u03ac\\u03bd\\u03b5 strike\", \"description\": \"\\u03ba\\u03b1\\u03b9 \\u03ba\\u03ad\\u03c1\\u03b4\\u03b9\\u03c3\\u03b5!\", \"image\": \"https://warply.s3.amazonaws.com/artworks/034fba10ceac4e0f9338bd8e60086292/index.html\"}"));
48 + clist.add(new Coupon("{\"barcode\": \"a724e911a71a42408b6ba50ae6c08dbb\", \"coupon\": \"12345678910\", \"name\": \"\\u039a\\u03ac\\u03bd\\u03b5 strike\", \"description\": \"\\u03ba\\u03b1\\u03b9 \\u03ba\\u03ad\\u03c1\\u03b4\\u03b9\\u03c3\\u03b5!\", \"image\": \"https://warply.s3.amazonaws.com/artworks/034fba10ceac4e0f9338bd8e60086292/index.html\"}"));
49 + } catch (JSONException e) {
50 + e.printStackTrace();
51 + }
52 + /********* TEST COUPONS DATA **********/
53 +
54 + mRecyclerCoupons = findViewById(R.id.rv_loyalty_coupons);
55 + mRecyclerCoupons.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));
56 + mAdapterCoupons = new HomeCouponAdapter(this, clist);
57 + mRecyclerCoupons.setAdapter(mAdapterCoupons);
58 + mAdapterCoupons.getPositionClicks()
59 + .doOnNext(coupon -> {
60 +// startActivity(WarpViewActivity.createIntentFromSessionUUID(this, coupon.getCoupon()));
61 + })
62 + .doOnError(error -> {
63 + })
64 + .subscribe();
65 +
34 initViews(); 66 initViews();
35 } 67 }
36 68
......
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<shape xmlns:android="http://schemas.android.com/apk/res/android"
3 + android:shape="rectangle">
4 + <gradient
5 + android:startColor="@color/cos_green2"
6 + android:centerColor="@color/green_dark"
7 + android:endColor="@color/cos_blue2"
8 + android:type="linear"/>
9 + <corners
10 + android:radius="1000dp"/>
11 +</shape>
...\ No newline at end of file ...\ No newline at end of file
...@@ -38,85 +38,157 @@ ...@@ -38,85 +38,157 @@
38 android:layout_height="match_parent" 38 android:layout_height="match_parent"
39 android:layout_below="@+id/cl_loyalty_wallet_header" 39 android:layout_below="@+id/cl_loyalty_wallet_header"
40 android:background="@color/cos_green"> 40 android:background="@color/cos_green">
41 - <!-- android:paddingBottom="24dp"--> 41 +
42 <androidx.constraintlayout.widget.ConstraintLayout 42 <androidx.constraintlayout.widget.ConstraintLayout
43 android:layout_width="match_parent" 43 android:layout_width="match_parent"
44 android:layout_height="wrap_content" 44 android:layout_height="wrap_content"
45 - android:background="@drawable/shape_cos_loyalty"> 45 + android:background="@drawable/shape_cos_loyalty"
46 + android:paddingBottom="24dp">
46 47
47 - <androidx.constraintlayout.widget.ConstraintLayout 48 + <include
48 - android:layout_width="match_parent" 49 + android:id="@+id/cl_loyalty_info_banner"
49 - android:layout_height="150dp" 50 + layout="@layout/loyalty_banner"
50 - android:paddingHorizontal="20dp"
51 - android:paddingVertical="8dp"
52 - android:layout_marginHorizontal="32dp"
53 - android:background="@drawable/shape_cos_gradient2"
54 app:layout_constraintEnd_toEndOf="parent" 51 app:layout_constraintEnd_toEndOf="parent"
55 - app:layout_constraintStart_toStartOf="parent"> 52 + app:layout_constraintStart_toStartOf="parent" />
53 +
54 + <RelativeLayout
55 + android:id="@+id/rl_gifts_row"
56 + android:layout_width="match_parent"
57 + android:layout_height="wrap_content"
58 + android:layout_marginTop="32dp"
59 + android:background="@color/cos_cyan"
60 + app:layout_constraintTop_toBottomOf="@+id/cl_loyalty_info_banner">
61 +
62 + <TextView
63 + android:id="@+id/tv_gifts_loyalty_title"
64 + android:layout_width="wrap_content"
65 + android:layout_height="wrap_content"
66 + android:layout_marginStart="10dp"
67 + android:text="@string/cos_coupons_loyalty_title"
68 + android:textColor="@color/grey"
69 + android:textSize="18sp"
70 + android:textStyle="bold" />
56 71
57 <LinearLayout 72 <LinearLayout
58 - android:id="@+id/ll_loyalty_banner_info" 73 + android:id="@+id/rl_home_coupons"
59 android:layout_width="match_parent" 74 android:layout_width="match_parent"
60 android:layout_height="wrap_content" 75 android:layout_height="wrap_content"
61 - android:gravity="center_vertical" 76 + android:layout_below="@id/tv_gifts_loyalty_title">
62 - android:orientation="horizontal" 77 +
63 - android:weightSum="1" 78 + <androidx.recyclerview.widget.RecyclerView
64 - app:layout_constraintEnd_toEndOf="parent" 79 + android:id="@+id/rv_loyalty_coupons"
65 - app:layout_constraintStart_toStartOf="parent" 80 + android:layout_width="match_parent"
66 - app:layout_constraintTop_toTopOf="parent">
67 -
68 - <RelativeLayout
69 - android:layout_width="wrap_content"
70 - android:layout_height="wrap_content"
71 - android:layout_weight="0.8"
72 - android:gravity="start">
73 -
74 - <ImageView
75 - android:id="@+id/iv_loyalty_type"
76 - android:layout_width="60dp"
77 - android:layout_height="40dp"
78 - android:src="@drawable/ic_traveller_white" />
79 -
80 - <TextView
81 - android:layout_width="wrap_content"
82 - android:layout_height="wrap_content"
83 - android:layout_below="@+id/iv_loyalty_type"
84 - android:text="@string/cos_profile_loyalty_name"
85 - android:textColor="@android:color/white"
86 - android:textFontWeight="600"
87 - android:textSize="18sp" />
88 - </RelativeLayout>
89 -
90 - <RelativeLayout
91 - android:layout_width="wrap_content"
92 android:layout_height="wrap_content" 81 android:layout_height="wrap_content"
93 - android:layout_weight="0.2" 82 + android:layout_marginBottom="8dp"
94 - android:gravity="end"> 83 + android:clipToPadding="false"
95 - 84 + android:orientation="horizontal"
96 - <de.hdodenhof.circleimageview.CircleImageView 85 + android:paddingEnd="10dp" />
97 - android:id="@+id/iv_profile_photo"
98 - android:layout_width="50dp"
99 - android:layout_height="50dp"
100 - android:src="@drawable/profile_photo"
101 - app:layout_constraintBottom_toBottomOf="parent"
102 - app:layout_constraintLeft_toLeftOf="parent"
103 - app:layout_constraintTop_toTopOf="parent" />
104 - </RelativeLayout>
105 </LinearLayout> 86 </LinearLayout>
87 + </RelativeLayout>
106 88
107 - <TextView 89 + <!-- <RelativeLayout-->
108 - android:layout_width="wrap_content" 90 + <!-- android:id="@+id/rl_gifts_row"-->
109 - android:layout_height="wrap_content" 91 + <!-- android:layout_width="match_parent"-->
110 - android:background="@drawable/round_border_tr" 92 + <!-- android:layout_height="wrap_content"-->
111 - android:paddingHorizontal="8dp" 93 + <!-- android:background="@color/cos_cyan"-->
112 - android:paddingVertical="4dp" 94 + <!-- app:layout_constraintTop_toBottomOf="@+id/cl_loyalty_info_banner">-->
113 - android:text="@string/cos_questionnaire" 95 +
114 - android:textColor="@android:color/white" 96 + <!-- <TextView-->
115 - android:textFontWeight="600" 97 + <!-- android:id="@+id/tv_gifts_loyalty_title"-->
116 - android:textSize="15sp" 98 + <!-- android:layout_width="wrap_content"-->
117 - app:layout_constraintBottom_toBottomOf="parent" 99 + <!-- android:layout_height="wrap_content"-->
118 - app:layout_constraintStart_toStartOf="parent" /> 100 + <!-- android:text="@string/cos_gifts_loyalty_title"-->
119 - </androidx.constraintlayout.widget.ConstraintLayout> 101 + <!-- android:textColor="@color/grey"-->
102 + <!-- android:textSize="18sp"-->
103 + <!-- android:textStyle="bold" />-->
104 +
105 + <!-- <HorizontalScrollView-->
106 + <!-- android:id="@+id/ll_add"-->
107 + <!-- android:layout_width="match_parent"-->
108 + <!-- android:layout_height="wrap_content"-->
109 + <!-- android:layout_below="@id/tv_gifts_loyalty_title"-->
110 + <!-- android:background="@android:color/white"-->
111 + <!-- android:scrollbars="none">-->
112 +
113 + <!-- <androidx.constraintlayout.widget.ConstraintLayout-->
114 + <!-- android:layout_width="400dp"-->
115 + <!-- android:layout_height="200dp"-->
116 + <!-- android:layout_marginStart="10dp">-->
117 +
118 + <!-- <androidx.constraintlayout.widget.Guideline-->
119 + <!-- android:id="@+id/gl_horizontal_80_guideline"-->
120 + <!-- android:layout_width="wrap_content"-->
121 + <!-- android:layout_height="wrap_content"-->
122 + <!-- android:orientation="horizontal"-->
123 + <!-- app:layout_constraintGuide_percent="0.8" />-->
124 +
125 + <!-- <androidx.constraintlayout.widget.Guideline-->
126 + <!-- android:id="@+id/gl_horizontal_55_guideline"-->
127 + <!-- android:layout_width="wrap_content"-->
128 + <!-- android:layout_height="wrap_content"-->
129 + <!-- android:orientation="horizontal"-->
130 + <!-- app:layout_constraintGuide_percent="0.55" />-->
131 +
132 + <!-- <ImageView-->
133 + <!-- android:id="@+id/iv_gift_item_logo"-->
134 + <!-- android:layout_width="match_parent"-->
135 + <!-- android:layout_height="0dp"-->
136 + <!-- android:scaleType="centerCrop"-->
137 + <!-- android:src="@drawable/ic_banner_gift"-->
138 + <!-- app:layout_constraintBottom_toTopOf="@+id/gl_horizontal_80_guideline"-->
139 + <!-- app:layout_constraintEnd_toEndOf="parent"-->
140 + <!-- app:layout_constraintStart_toStartOf="parent"-->
141 + <!-- app:layout_constraintTop_toTopOf="parent" />-->
142 +
143 + <!-- <RelativeLayout-->
144 + <!-- android:layout_width="0dp"-->
145 + <!-- android:layout_height="0dp"-->
146 + <!-- android:background="@color/cos_cyan"-->
147 + <!-- app:layout_constraintBottom_toBottomOf="parent"-->
148 + <!-- app:layout_constraintEnd_toEndOf="parent"-->
149 + <!-- app:layout_constraintStart_toStartOf="parent"-->
150 + <!-- app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_55_guideline">-->
151 +
152 + <!-- <LinearLayout-->
153 + <!-- android:id="@+id/ll_loyalty_item1"-->
154 + <!-- android:layout_width="match_parent"-->
155 + <!-- android:layout_height="wrap_content"-->
156 + <!-- android:background="@color/white_tr3"-->
157 + <!-- android:paddingVertical="4dp">-->
158 +
159 + <!-- <TextView-->
160 + <!-- android:layout_width="wrap_content"-->
161 + <!-- android:layout_height="wrap_content"-->
162 + <!-- android:text="Αποκλειστικά για σένα"-->
163 + <!-- android:textColor="@color/grey"-->
164 + <!-- android:textStyle="bold" />-->
165 + <!-- </LinearLayout>-->
166 +
167 + <!-- <LinearLayout-->
168 + <!-- android:layout_width="match_parent"-->
169 + <!-- android:layout_height="match_parent"-->
170 + <!-- android:layout_below="@+id/ll_loyalty_item1"-->
171 + <!-- android:background="@android:color/white"-->
172 + <!-- android:orientation="vertical">-->
173 +
174 + <!-- <TextView-->
175 + <!-- android:layout_width="match_parent"-->
176 + <!-- android:layout_height="wrap_content"-->
177 + <!-- android:maxLines="2"-->
178 + <!-- android:text="2 ώρες δωρεάν απεριόριστα data όποτε θέλεις εσύ, κάθε μήνα!" />-->
179 +
180 + <!-- <TextView-->
181 + <!-- android:layout_width="wrap_content"-->
182 + <!-- android:layout_height="wrap_content"-->
183 + <!-- android:background="@drawable/shape_cos_gradient2"-->
184 + <!-- android:text="Πάρε το δώρο σου"-->
185 + <!-- android:textColor="@android:color/white"-->
186 + <!-- android:textFontWeight="600" />-->
187 + <!-- </LinearLayout>-->
188 + <!-- </RelativeLayout>-->
189 + <!-- </androidx.constraintlayout.widget.ConstraintLayout>-->
190 + <!-- </HorizontalScrollView>-->
191 + <!-- </RelativeLayout>-->
120 </androidx.constraintlayout.widget.ConstraintLayout> 192 </androidx.constraintlayout.widget.ConstraintLayout>
121 </ScrollView> 193 </ScrollView>
122 </RelativeLayout> 194 </RelativeLayout>
......
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:app="http://schemas.android.com/apk/res-auto" 3 xmlns:app="http://schemas.android.com/apk/res-auto"
4 - xmlns:tools="http://schemas.android.com/tools" 4 + android:layout_width="360dp"
5 - android:layout_width="match_parent" 5 + android:layout_height="wrap_content"
6 - android:layout_height="250dp"> 6 + android:layout_marginStart="10dp">
7 7
8 <androidx.constraintlayout.widget.Guideline 8 <androidx.constraintlayout.widget.Guideline
9 android:id="@+id/horizontal_guideline" 9 android:id="@+id/horizontal_guideline"
10 android:layout_width="wrap_content" 10 android:layout_width="wrap_content"
11 android:layout_height="wrap_content" 11 android:layout_height="wrap_content"
12 android:orientation="horizontal" 12 android:orientation="horizontal"
13 - app:layout_constraintGuide_percent="0.18" /> 13 + app:layout_constraintGuide_percent="0.12" />
14 14
15 <androidx.constraintlayout.widget.Guideline 15 <androidx.constraintlayout.widget.Guideline
16 android:id="@+id/horizontal_guideline2" 16 android:id="@+id/horizontal_guideline2"
17 android:layout_width="wrap_content" 17 android:layout_width="wrap_content"
18 android:layout_height="wrap_content" 18 android:layout_height="wrap_content"
19 android:orientation="horizontal" 19 android:orientation="horizontal"
20 - app:layout_constraintGuide_percent="0.75" /> 20 + app:layout_constraintGuide_percent="0.88" />
21 21
22 <androidx.constraintlayout.widget.Guideline 22 <androidx.constraintlayout.widget.Guideline
23 android:id="@+id/vertical_guideline" 23 android:id="@+id/vertical_guideline"
24 android:layout_width="wrap_content" 24 android:layout_width="wrap_content"
25 android:layout_height="wrap_content" 25 android:layout_height="wrap_content"
26 android:orientation="vertical" 26 android:orientation="vertical"
27 - app:layout_constraintGuide_percent="0.85" /> 27 + app:layout_constraintGuide_percent="0.94" />
28 28
29 <androidx.constraintlayout.widget.Guideline 29 <androidx.constraintlayout.widget.Guideline
30 android:id="@+id/vertical_guideline2" 30 android:id="@+id/vertical_guideline2"
31 android:layout_width="wrap_content" 31 android:layout_width="wrap_content"
32 android:layout_height="wrap_content" 32 android:layout_height="wrap_content"
33 android:orientation="vertical" 33 android:orientation="vertical"
34 - app:layout_constraintGuide_percent="0.14" /> 34 + app:layout_constraintGuide_percent="0.06" />
35 35
36 <ImageView 36 <ImageView
37 android:id="@+id/imageView2" 37 android:id="@+id/imageView2"
38 - android:layout_width="403dp" 38 + android:layout_width="match_parent"
39 - android:layout_height="238dp" 39 + android:layout_height="250dp"
40 - android:scaleType="fitXY" 40 + android:src="@drawable/coupon_wrapper2"
41 - android:src="@drawable/coupon_wrapper"
42 app:layout_constraintBottom_toBottomOf="parent" 41 app:layout_constraintBottom_toBottomOf="parent"
43 app:layout_constraintEnd_toEndOf="parent" 42 app:layout_constraintEnd_toEndOf="parent"
44 app:layout_constraintStart_toStartOf="parent" 43 app:layout_constraintStart_toStartOf="parent"
45 app:layout_constraintTop_toTopOf="parent" /> 44 app:layout_constraintTop_toTopOf="parent" />
46 45
47 <androidx.constraintlayout.widget.ConstraintLayout 46 <androidx.constraintlayout.widget.ConstraintLayout
48 - android:layout_width="300dp" 47 + android:layout_width="0dp"
49 - android:layout_height="150dp" 48 + android:layout_height="0dp"
50 - android:paddingHorizontal="5dp"
51 app:layout_constraintBottom_toTopOf="@+id/horizontal_guideline2" 49 app:layout_constraintBottom_toTopOf="@+id/horizontal_guideline2"
52 app:layout_constraintEnd_toStartOf="@+id/vertical_guideline" 50 app:layout_constraintEnd_toStartOf="@+id/vertical_guideline"
53 app:layout_constraintStart_toStartOf="@+id/vertical_guideline2" 51 app:layout_constraintStart_toStartOf="@+id/vertical_guideline2"
...@@ -55,50 +53,56 @@ ...@@ -55,50 +53,56 @@
55 53
56 <TextView 54 <TextView
57 android:id="@+id/tv_coupon_title" 55 android:id="@+id/tv_coupon_title"
58 - android:layout_width="wrap_content" 56 + android:layout_width="0dp"
59 android:layout_height="wrap_content" 57 android:layout_height="wrap_content"
60 - android:layout_marginTop="16dp"
61 android:maxLines="1" 58 android:maxLines="1"
62 android:text="Αποκλειστικά για σένα" 59 android:text="Αποκλειστικά για σένα"
63 - app:layout_constraintBottom_toTopOf="@+id/tv_coupon_subtitle" 60 + android:textColor="@color/grey"
61 + android:textSize="18sp"
62 + android:textStyle="bold"
63 + android:layout_marginTop="16dp"
64 + app:layout_constraintEnd_toStartOf="@+id/iv_coupon_logo"
64 app:layout_constraintStart_toStartOf="parent" 65 app:layout_constraintStart_toStartOf="parent"
65 - app:layout_constraintTop_toTopOf="parent" 66 + app:layout_constraintTop_toTopOf="parent" />
66 - app:layout_constraintVertical_bias="0.2" />
67 -
68 - <ImageView
69 - android:id="@+id/iv_coupon_logo"
70 - android:layout_width="80dp"
71 - android:layout_height="60dp"
72 - android:src="@drawable/sklavenitis_logo"
73 - app:layout_constraintBottom_toTopOf="@+id/tv_coupon_subtitle"
74 - app:layout_constraintEnd_toEndOf="@+id/tv_coupon_subtitle"
75 - app:layout_constraintHorizontal_bias="1.0"
76 - app:layout_constraintStart_toEndOf="@+id/tv_coupon_title"
77 - app:layout_constraintTop_toTopOf="parent"
78 - app:layout_constraintVertical_bias="1.0" />
79 67
80 <TextView 68 <TextView
81 android:id="@+id/tv_coupon_subtitle" 69 android:id="@+id/tv_coupon_subtitle"
82 - android:layout_width="wrap_content" 70 + android:layout_width="0dp"
83 android:layout_height="wrap_content" 71 android:layout_height="wrap_content"
84 android:layout_marginBottom="24dp" 72 android:layout_marginBottom="24dp"
85 android:maxLines="2" 73 android:maxLines="2"
74 + android:layout_marginTop="8dp"
86 android:text="10€ έκπτωση στα ψώνια σου στα supermarket Σκλαβενίτης!" 75 android:text="10€ έκπτωση στα ψώνια σου στα supermarket Σκλαβενίτης!"
87 - app:layout_constraintBottom_toTopOf="@+id/button" 76 + android:textColor="@color/grey"
77 + android:textFontWeight="600"
78 + android:textSize="16sp"
79 + app:layout_constraintEnd_toStartOf="@+id/iv_coupon_logo"
80 + app:layout_constraintStart_toStartOf="parent"
81 + app:layout_constraintTop_toBottomOf="@+id/tv_coupon_title" />
82 +
83 + <ImageView
84 + android:id="@+id/iv_coupon_logo"
85 + android:layout_width="80dp"
86 + android:layout_height="60dp"
87 + android:layout_marginTop="16dp"
88 + android:src="@drawable/sklavenitis_logo"
88 app:layout_constraintEnd_toEndOf="parent" 89 app:layout_constraintEnd_toEndOf="parent"
89 - app:layout_constraintStart_toStartOf="parent" /> 90 + app:layout_constraintTop_toTopOf="parent" />
90 91
91 - <Button 92 + <TextView
92 android:id="@+id/button" 93 android:id="@+id/button"
93 - android:layout_width="150dp" 94 + android:layout_width="wrap_content"
94 - android:layout_height="40dp" 95 + android:layout_height="wrap_content"
95 - android:background="@drawable/round_border" 96 + android:background="@drawable/shape_cos_gradient3"
97 + android:paddingHorizontal="16dp"
98 + android:paddingVertical="4dp"
96 android:text="Εξαργύρωση" 99 android:text="Εξαργύρωση"
97 android:textAlignment="center" 100 android:textAlignment="center"
98 - android:textSize="11dp" 101 + android:textColor="@android:color/white"
102 + android:textFontWeight="600"
103 + android:textSize="15dp"
104 + android:layout_marginBottom="16dp"
99 app:layout_constraintBottom_toBottomOf="parent" 105 app:layout_constraintBottom_toBottomOf="parent"
100 - app:layout_constraintEnd_toEndOf="parent" 106 + app:layout_constraintEnd_toEndOf="parent" />
101 - app:layout_constraintHorizontal_bias="1.0"
102 - app:layout_constraintStart_toStartOf="parent" />
103 </androidx.constraintlayout.widget.ConstraintLayout> 107 </androidx.constraintlayout.widget.ConstraintLayout>
104 </androidx.constraintlayout.widget.ConstraintLayout> 108 </androidx.constraintlayout.widget.ConstraintLayout>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -93,6 +93,7 @@ ...@@ -93,6 +93,7 @@
93 android:layout_height="wrap_content" 93 android:layout_height="wrap_content"
94 android:layout_below="@id/rl_header" 94 android:layout_below="@id/rl_header"
95 android:layout_marginTop="16dp"> 95 android:layout_marginTop="16dp">
96 +
96 <androidx.recyclerview.widget.RecyclerView 97 <androidx.recyclerview.widget.RecyclerView
97 android:id="@+id/rv_home_campaigns" 98 android:id="@+id/rv_home_campaigns"
98 android:layout_width="match_parent" 99 android:layout_width="match_parent"
...@@ -100,7 +101,7 @@ ...@@ -100,7 +101,7 @@
100 android:layout_marginBottom="8dp" 101 android:layout_marginBottom="8dp"
101 android:clipToPadding="false" 102 android:clipToPadding="false"
102 android:orientation="horizontal" 103 android:orientation="horizontal"
103 - android:paddingEnd="10dp"/> 104 + android:paddingEnd="10dp" />
104 </RelativeLayout> 105 </RelativeLayout>
105 106
106 <LinearLayout 107 <LinearLayout
......
1 +<?xml version="1.0" encoding="utf-8"?>
2 +
3 +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
4 + xmlns:app="http://schemas.android.com/apk/res-auto"
5 + android:layout_width="match_parent"
6 + android:layout_height="150dp"
7 + android:layout_marginHorizontal="32dp"
8 + android:background="@drawable/shape_cos_gradient2"
9 + android:paddingHorizontal="20dp"
10 + android:paddingVertical="8dp"
11 + app:layout_constraintEnd_toEndOf="parent"
12 + app:layout_constraintStart_toStartOf="parent">
13 +
14 + <LinearLayout
15 + android:id="@+id/ll_loyalty_banner_info"
16 + android:layout_width="match_parent"
17 + android:layout_height="wrap_content"
18 + android:gravity="center_vertical"
19 + android:orientation="horizontal"
20 + android:weightSum="1"
21 + app:layout_constraintEnd_toEndOf="parent"
22 + app:layout_constraintStart_toStartOf="parent"
23 + app:layout_constraintTop_toTopOf="parent">
24 +
25 + <RelativeLayout
26 + android:layout_width="wrap_content"
27 + android:layout_height="wrap_content"
28 + android:layout_weight="0.8"
29 + android:gravity="start">
30 +
31 + <ImageView
32 + android:id="@+id/iv_loyalty_type"
33 + android:layout_width="60dp"
34 + android:layout_height="40dp"
35 + android:src="@drawable/ic_traveller_white" />
36 +
37 + <TextView
38 + android:layout_width="wrap_content"
39 + android:layout_height="wrap_content"
40 + android:layout_below="@+id/iv_loyalty_type"
41 + android:text="@string/cos_profile_loyalty_name"
42 + android:textColor="@android:color/white"
43 + android:textFontWeight="600"
44 + android:textSize="18sp" />
45 + </RelativeLayout>
46 +
47 + <RelativeLayout
48 + android:layout_width="wrap_content"
49 + android:layout_height="wrap_content"
50 + android:layout_weight="0.2"
51 + android:gravity="end">
52 +
53 + <de.hdodenhof.circleimageview.CircleImageView
54 + android:id="@+id/iv_profile_photo"
55 + android:layout_width="50dp"
56 + android:layout_height="50dp"
57 + android:src="@drawable/profile_photo"
58 + app:layout_constraintBottom_toBottomOf="parent"
59 + app:layout_constraintLeft_toLeftOf="parent"
60 + app:layout_constraintTop_toTopOf="parent" />
61 + </RelativeLayout>
62 + </LinearLayout>
63 +
64 + <TextView
65 + android:layout_width="wrap_content"
66 + android:layout_height="wrap_content"
67 + android:background="@drawable/round_border_tr"
68 + android:paddingHorizontal="8dp"
69 + android:paddingVertical="4dp"
70 + android:text="@string/cos_questionnaire"
71 + android:textColor="@android:color/white"
72 + android:textFontWeight="600"
73 + android:textSize="15sp"
74 + app:layout_constraintBottom_toBottomOf="parent"
75 + app:layout_constraintStart_toStartOf="parent" />
76 +</androidx.constraintlayout.widget.ConstraintLayout>
...\ No newline at end of file ...\ No newline at end of file
...@@ -16,4 +16,5 @@ ...@@ -16,4 +16,5 @@
16 <color name="green_dark">#1DA87A</color> 16 <color name="green_dark">#1DA87A</color>
17 <color name="cos_blue2">#0478BE</color> 17 <color name="cos_blue2">#0478BE</color>
18 <color name="white_tr2">#77FFFFFF</color> 18 <color name="white_tr2">#77FFFFFF</color>
19 + <color name="white_tr3">#77FFFFFF</color>
19 </resources> 20 </resources>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -22,4 +22,6 @@ ...@@ -22,4 +22,6 @@
22 <string name="menu_profile">Προφίλ</string> 22 <string name="menu_profile">Προφίλ</string>
23 <string name="cos_profile_loyalty_name">Γιώργος Γεωργίου</string> 23 <string name="cos_profile_loyalty_name">Γιώργος Γεωργίου</string>
24 <string name="cos_questionnaire">Ερωτηματολόγιο</string> 24 <string name="cos_questionnaire">Ερωτηματολόγιο</string>
25 + <string name="cos_gifts_loyalty_title">Τα δώρα μου</string>
26 + <string name="cos_coupons_loyalty_title">Ενεργά κουπόνια</string>
25 </resources> 27 </resources>
...\ No newline at end of file ...\ No newline at end of file
......