Panagiotis Triantafyllou

ui changes and fixes

...@@ -12,6 +12,7 @@ import android.widget.LinearLayout; ...@@ -12,6 +12,7 @@ import android.widget.LinearLayout;
12 import android.widget.RelativeLayout; 12 import android.widget.RelativeLayout;
13 import android.widget.TextView; 13 import android.widget.TextView;
14 14
15 +import androidx.cardview.widget.CardView;
15 import androidx.core.content.ContextCompat; 16 import androidx.core.content.ContextCompat;
16 import androidx.recyclerview.widget.LinearLayoutManager; 17 import androidx.recyclerview.widget.LinearLayoutManager;
17 import androidx.recyclerview.widget.RecyclerView; 18 import androidx.recyclerview.widget.RecyclerView;
...@@ -53,7 +54,8 @@ public class LoyaltyMarketAnalysisActivity extends Activity implements View.OnCl ...@@ -53,7 +54,8 @@ public class LoyaltyMarketAnalysisActivity extends Activity implements View.OnCl
53 private ExpiredCouponAdapter mAdapterExpiredCoupons; 54 private ExpiredCouponAdapter mAdapterExpiredCoupons;
54 private SharedCouponAdapter mAdapterSharedCoupons; 55 private SharedCouponAdapter mAdapterSharedCoupons;
55 private LinearLayout mLlExpiredTab, mLlSharedTab, mLlShowMoreExpired, mLlShowMoreShared; 56 private LinearLayout mLlExpiredTab, mLlSharedTab, mLlShowMoreExpired, mLlShowMoreShared;
56 - private RelativeLayout mRlExpiredView, mRlSharedView; 57 + private RelativeLayout mRlExpiredView;
58 + private CardView mRlSharedView;
57 private SharingList mSharedCoupons = new SharingList(); 59 private SharingList mSharedCoupons = new SharingList();
58 private int mTimer = 0; 60 private int mTimer = 0;
59 private Handler mSecondsHandler; 61 private Handler mSecondsHandler;
......
...@@ -18,6 +18,7 @@ import android.widget.ScrollView; ...@@ -18,6 +18,7 @@ import android.widget.ScrollView;
18 import android.widget.TextView; 18 import android.widget.TextView;
19 19
20 import androidx.appcompat.app.AlertDialog; 20 import androidx.appcompat.app.AlertDialog;
21 +import androidx.cardview.widget.CardView;
21 import androidx.constraintlayout.widget.ConstraintLayout; 22 import androidx.constraintlayout.widget.ConstraintLayout;
22 import androidx.core.content.ContextCompat; 23 import androidx.core.content.ContextCompat;
23 import androidx.core.widget.NestedScrollView; 24 import androidx.core.widget.NestedScrollView;
...@@ -81,7 +82,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie ...@@ -81,7 +82,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie
81 mTvUserBadge, mTvGiftsValue, mTvGiftsValueAll, mTvActiveCode, mTvActiveDate, 82 mTvUserBadge, mTvGiftsValue, mTvGiftsValueAll, mTvActiveCode, mTvActiveDate,
82 mTvActiveTitle, mTvActiveCouponsHeader, mTvMarketValue, mTvMarketAll, mTvFavValue, mTvFavValueAll; 83 mTvActiveTitle, mTvActiveCouponsHeader, mTvMarketValue, mTvMarketAll, mTvFavValue, mTvFavValueAll;
83 private ConstraintLayout mClDealsBanner, mClDealsView, 84 private ConstraintLayout mClDealsBanner, mClDealsView,
84 - mClGiftsBanner, mClToolbar, mClExp, mClMarket; 85 + mClGiftsBanner, mClToolbar, mClMarket;
85 private LinearLayout mLlQuestionnaire, mLlUserBadge, mLlEmptyWallet, mLlDeals, mLlGifts, 86 private LinearLayout mLlQuestionnaire, mLlUserBadge, mLlEmptyWallet, mLlDeals, mLlGifts,
86 mLlMarketView; 87 mLlMarketView;
87 private FlowLayout mLlActiveCodesView; 88 private FlowLayout mLlActiveCodesView;
...@@ -99,6 +100,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie ...@@ -99,6 +100,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie
99 private MarketCouponAdapter mAdapterMarketCoupons; 100 private MarketCouponAdapter mAdapterMarketCoupons;
100 private ExpandableLayout mElGifts; 101 private ExpandableLayout mElGifts;
101 private boolean mIsStayCollapsed = true; 102 private boolean mIsStayCollapsed = true;
103 + private CardView mClExp;
102 104
103 // =========================================================== 105 // ===========================================================
104 // Methods for/from SuperClass/Interfaces 106 // Methods for/from SuperClass/Interfaces
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
106 android:layout_marginTop="24dp" 106 android:layout_marginTop="24dp"
107 android:text="Κωδικός Κουπονιού" 107 android:text="Κωδικός Κουπονιού"
108 android:textColor="@color/cos_light_black" 108 android:textColor="@color/cos_light_black"
109 - android:textSize="16sp" /> 109 + android:textSize="18sp" />
110 110
111 <TextView 111 <TextView
112 android:id="@+id/textView16" 112 android:id="@+id/textView16"
...@@ -210,9 +210,9 @@ ...@@ -210,9 +210,9 @@
210 android:layout_width="wrap_content" 210 android:layout_width="wrap_content"
211 android:layout_height="wrap_content" 211 android:layout_height="wrap_content"
212 android:layout_gravity="center" 212 android:layout_gravity="center"
213 - android:layout_marginTop="24dp" 213 + android:layout_marginTop="16dp"
214 android:textColor="@color/cos_light_black" 214 android:textColor="@color/cos_light_black"
215 - android:textSize="15sp" 215 + android:textSize="16sp"
216 tools:text="@string/cos_coupon_date" /> 216 tools:text="@string/cos_coupon_date" />
217 217
218 <LinearLayout 218 <LinearLayout
......
...@@ -136,18 +136,24 @@ ...@@ -136,18 +136,24 @@
136 android:gravity="center_horizontal" 136 android:gravity="center_horizontal"
137 android:orientation="vertical"> 137 android:orientation="vertical">
138 138
139 - <androidx.constraintlayout.widget.ConstraintLayout 139 + <androidx.cardview.widget.CardView
140 android:id="@+id/cl_exp" 140 android:id="@+id/cl_exp"
141 android:layout_width="match_parent" 141 android:layout_width="match_parent"
142 android:layout_height="wrap_content" 142 android:layout_height="wrap_content"
143 - android:layout_marginHorizontal="4dp" 143 + android:layout_marginHorizontal="11dp"
144 android:layout_marginTop="24dp" 144 android:layout_marginTop="24dp"
145 - android:background="@drawable/shape_cos_white_border"
146 - android:paddingHorizontal="14dp"
147 - android:paddingVertical="14dp"
148 android:visibility="gone" 145 android:visibility="gone"
146 + app:cardCornerRadius="16dp"
147 + app:cardElevation="2dp"
149 tools:visibility="visible"> 148 tools:visibility="visible">
150 149
150 + <androidx.constraintlayout.widget.ConstraintLayout
151 + android:layout_width="match_parent"
152 + android:layout_height="wrap_content"
153 + android:background="@color/white"
154 + android:paddingHorizontal="14dp"
155 + android:paddingVertical="14dp">
156 +
151 <androidx.constraintlayout.widget.Guideline 157 <androidx.constraintlayout.widget.Guideline
152 android:id="@+id/gl_horizontal_64_exp" 158 android:id="@+id/gl_horizontal_64_exp"
153 android:layout_width="wrap_content" 159 android:layout_width="wrap_content"
...@@ -203,6 +209,7 @@ ...@@ -203,6 +209,7 @@
203 app:layout_constraintEnd_toEndOf="parent" 209 app:layout_constraintEnd_toEndOf="parent"
204 app:layout_constraintTop_toTopOf="parent" /> 210 app:layout_constraintTop_toTopOf="parent" />
205 </androidx.constraintlayout.widget.ConstraintLayout> 211 </androidx.constraintlayout.widget.ConstraintLayout>
212 + </androidx.cardview.widget.CardView>
206 213
207 <net.cachapa.expandablelayout.ExpandableLayout 214 <net.cachapa.expandablelayout.ExpandableLayout
208 android:id="@+id/el_exp" 215 android:id="@+id/el_exp"
...@@ -216,13 +223,20 @@ ...@@ -216,13 +223,20 @@
216 android:layout_width="match_parent" 223 android:layout_width="match_parent"
217 android:layout_height="wrap_content"> 224 android:layout_height="wrap_content">
218 225
219 - <androidx.constraintlayout.widget.ConstraintLayout 226 + <androidx.cardview.widget.CardView
220 - android:id="@+id/cl_deals_win_inner_cos" 227 + android:id="@+id/cv_deals_win_inner_cos"
221 android:layout_width="match_parent" 228 android:layout_width="match_parent"
222 android:layout_height="wrap_content" 229 android:layout_height="wrap_content"
223 android:layout_marginHorizontal="16dp" 230 android:layout_marginHorizontal="16dp"
224 android:layout_marginTop="6dp" 231 android:layout_marginTop="6dp"
225 - android:background="@drawable/shape_cos_white_border" 232 + app:cardCornerRadius="16dp"
233 + app:cardElevation="2dp">
234 +
235 + <androidx.constraintlayout.widget.ConstraintLayout
236 + android:id="@+id/cl_deals_win_inner_cos"
237 + android:layout_width="match_parent"
238 + android:layout_height="wrap_content"
239 + android:background="@color/white"
226 android:paddingHorizontal="6dp" 240 android:paddingHorizontal="6dp"
227 android:paddingVertical="4dp"> 241 android:paddingVertical="4dp">
228 242
...@@ -270,15 +284,23 @@ ...@@ -270,15 +284,23 @@
270 app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_50_cos" 284 app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_50_cos"
271 tools:text="18.00€" /> 285 tools:text="18.00€" />
272 </androidx.constraintlayout.widget.ConstraintLayout> 286 </androidx.constraintlayout.widget.ConstraintLayout>
287 + </androidx.cardview.widget.CardView>
273 288
274 - <androidx.constraintlayout.widget.ConstraintLayout 289 + <androidx.cardview.widget.CardView
275 - android:id="@+id/cl_deals_win_inner" 290 + android:id="@+id/cv_deals_win_inner"
276 android:layout_width="match_parent" 291 android:layout_width="match_parent"
277 android:layout_height="wrap_content" 292 android:layout_height="wrap_content"
278 - android:layout_below="@+id/cl_deals_win_inner_cos" 293 + android:layout_below="@+id/cv_deals_win_inner_cos"
279 android:layout_marginHorizontal="16dp" 294 android:layout_marginHorizontal="16dp"
280 android:layout_marginTop="6dp" 295 android:layout_marginTop="6dp"
281 - android:background="@drawable/shape_cos_white_border" 296 + app:cardCornerRadius="16dp"
297 + app:cardElevation="2dp">
298 +
299 + <androidx.constraintlayout.widget.ConstraintLayout
300 + android:id="@+id/cl_deals_win_inner"
301 + android:layout_width="match_parent"
302 + android:layout_height="wrap_content"
303 + android:background="@color/white"
282 android:paddingHorizontal="6dp" 304 android:paddingHorizontal="6dp"
283 android:paddingVertical="4dp"> 305 android:paddingVertical="4dp">
284 306
...@@ -326,15 +348,24 @@ ...@@ -326,15 +348,24 @@
326 app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_50" 348 app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_50"
327 tools:text="20.00€" /> 349 tools:text="20.00€" />
328 </androidx.constraintlayout.widget.ConstraintLayout> 350 </androidx.constraintlayout.widget.ConstraintLayout>
351 + </androidx.cardview.widget.CardView>
329 352
330 - <androidx.constraintlayout.widget.ConstraintLayout 353 + <androidx.cardview.widget.CardView
331 - android:id="@+id/cl_market_inner" 354 + android:id="@+id/cv_market_inner"
332 android:layout_width="match_parent" 355 android:layout_width="match_parent"
333 android:layout_height="wrap_content" 356 android:layout_height="wrap_content"
334 - android:layout_below="@+id/cl_deals_win_inner" 357 + android:layout_below="@+id/cv_deals_win_inner"
335 android:layout_marginHorizontal="16dp" 358 android:layout_marginHorizontal="16dp"
336 android:layout_marginTop="6dp" 359 android:layout_marginTop="6dp"
337 - android:background="@drawable/shape_cos_white_border" 360 + android:layout_marginBottom="6dp"
361 + app:cardCornerRadius="16dp"
362 + app:cardElevation="2dp">
363 +
364 + <androidx.constraintlayout.widget.ConstraintLayout
365 + android:id="@+id/cl_market_inner"
366 + android:layout_width="match_parent"
367 + android:layout_height="wrap_content"
368 + android:background="@color/white"
338 android:paddingHorizontal="6dp" 369 android:paddingHorizontal="6dp"
339 android:paddingVertical="4dp"> 370 android:paddingVertical="4dp">
340 371
...@@ -382,6 +413,7 @@ ...@@ -382,6 +413,7 @@
382 app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_50_market" 413 app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_50_market"
383 tools:text="20.00€" /> 414 tools:text="20.00€" />
384 </androidx.constraintlayout.widget.ConstraintLayout> 415 </androidx.constraintlayout.widget.ConstraintLayout>
416 + </androidx.cardview.widget.CardView>
385 </RelativeLayout> 417 </RelativeLayout>
386 </net.cachapa.expandablelayout.ExpandableLayout> 418 </net.cachapa.expandablelayout.ExpandableLayout>
387 419
...@@ -389,7 +421,7 @@ ...@@ -389,7 +421,7 @@
389 android:id="@+id/ll_market_view" 421 android:id="@+id/ll_market_view"
390 android:layout_width="match_parent" 422 android:layout_width="match_parent"
391 android:layout_height="wrap_content" 423 android:layout_height="wrap_content"
392 - android:layout_marginTop="24dp" 424 + android:layout_marginTop="20dp"
393 android:orientation="vertical" 425 android:orientation="vertical"
394 android:visibility="gone" 426 android:visibility="gone"
395 tools:visibility="visible"> 427 tools:visibility="visible">
...@@ -446,15 +478,14 @@ ...@@ -446,15 +478,14 @@
446 android:id="@+id/cl_mygifts" 478 android:id="@+id/cl_mygifts"
447 android:layout_width="match_parent" 479 android:layout_width="match_parent"
448 android:layout_height="wrap_content" 480 android:layout_height="wrap_content"
449 - android:layout_marginHorizontal="8dp"
450 - android:layout_marginTop="8dp"
451 android:background="@color/white" 481 android:background="@color/white"
452 - android:paddingVertical="10dp"> 482 + android:paddingVertical="8dp">
453 483
454 <LinearLayout 484 <LinearLayout
455 android:layout_width="0dp" 485 android:layout_width="0dp"
456 android:layout_height="wrap_content" 486 android:layout_height="wrap_content"
457 - android:layout_marginHorizontal="24dp" 487 + android:layout_marginEnd="24dp"
488 + android:layout_marginStart="20dp"
458 android:orientation="vertical" 489 android:orientation="vertical"
459 app:layout_constraintBottom_toBottomOf="parent" 490 app:layout_constraintBottom_toBottomOf="parent"
460 app:layout_constraintEnd_toStartOf="@+id/iv_deals_circle" 491 app:layout_constraintEnd_toStartOf="@+id/iv_deals_circle"
...@@ -514,7 +545,7 @@ ...@@ -514,7 +545,7 @@
514 android:layout_width="86dp" 545 android:layout_width="86dp"
515 android:layout_height="86dp" 546 android:layout_height="86dp"
516 android:layout_marginVertical="4dp" 547 android:layout_marginVertical="4dp"
517 - android:layout_marginEnd="32dp" 548 + android:layout_marginEnd="20dp"
518 android:src="@drawable/ic_deals_new" 549 android:src="@drawable/ic_deals_new"
519 app:layout_constraintBottom_toBottomOf="parent" 550 app:layout_constraintBottom_toBottomOf="parent"
520 app:layout_constraintEnd_toEndOf="parent" 551 app:layout_constraintEnd_toEndOf="parent"
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 android:layout_height="wrap_content" 28 android:layout_height="wrap_content"
29 android:text="@string/cos_coupon_info_title" 29 android:text="@string/cos_coupon_info_title"
30 android:textColor="@color/cos_light_black" 30 android:textColor="@color/cos_light_black"
31 - android:textSize="21sp" 31 + android:textSize="19sp"
32 app:layout_constraintBottom_toBottomOf="parent" 32 app:layout_constraintBottom_toBottomOf="parent"
33 app:layout_constraintEnd_toEndOf="parent" 33 app:layout_constraintEnd_toEndOf="parent"
34 app:layout_constraintStart_toStartOf="parent" 34 app:layout_constraintStart_toStartOf="parent"
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
56 <ImageView 56 <ImageView
57 android:id="@+id/imageView6" 57 android:id="@+id/imageView6"
58 android:layout_width="match_parent" 58 android:layout_width="match_parent"
59 - android:layout_height="295dp" 59 + android:layout_height="255dp"
60 android:scaleType="centerCrop" 60 android:scaleType="centerCrop"
61 android:src="@drawable/unified_coupon_banner" /> 61 android:src="@drawable/unified_coupon_banner" />
62 62
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
189 android:layout_height="wrap_content" 189 android:layout_height="wrap_content"
190 android:text="@string/cos_hide_market_coupons" 190 android:text="@string/cos_hide_market_coupons"
191 android:textColor="@color/cos_light_black" 191 android:textColor="@color/cos_light_black"
192 - android:textSize="16sp" /> 192 + android:textSize="15sp" />
193 193
194 <ImageView 194 <ImageView
195 android:id="@+id/iv_market_expand" 195 android:id="@+id/iv_market_expand"
...@@ -283,7 +283,8 @@ ...@@ -283,7 +283,8 @@
283 android:layout_marginHorizontal="32dp" 283 android:layout_marginHorizontal="32dp"
284 android:layout_marginTop="16dp" 284 android:layout_marginTop="16dp"
285 android:text="@string/cos_market_terms" 285 android:text="@string/cos_market_terms"
286 - android:textColor="@color/cos_gray" 286 + android:textColor="@color/cos_light_black"
287 + android:textSize="14sp"
287 android:visibility="gone" 288 android:visibility="gone"
288 tools:visibility="visible"/> 289 tools:visibility="visible"/>
289 </RelativeLayout> 290 </RelativeLayout>
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
5 xmlns:tools="http://schemas.android.com/tools" 5 xmlns:tools="http://schemas.android.com/tools"
6 android:id="@+id/cl_custom_layout" 6 android:id="@+id/cl_custom_layout"
7 android:layout_width="match_parent" 7 android:layout_width="match_parent"
8 - android:layout_height="150dp" 8 + android:layout_height="145dp"
9 - android:layout_marginHorizontal="4dp" 9 + android:layout_marginHorizontal="6dp"
10 - android:layout_marginVertical="4dp" 10 + android:layout_marginBottom="4dp"
11 - android:background="@drawable/ic_coupon_background_new2"> 11 + android:background="@drawable/ic_coupon_background_new3">
12 12
13 <ImageView 13 <ImageView
14 android:id="@+id/iv_active_coupon" 14 android:id="@+id/iv_active_coupon"
......
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
4 xmlns:custom="http://schemas.android.com/apk/res-auto" 4 xmlns:custom="http://schemas.android.com/apk/res-auto"
5 xmlns:tools="http://schemas.android.com/tools" 5 xmlns:tools="http://schemas.android.com/tools"
6 android:layout_width="match_parent" 6 android:layout_width="match_parent"
7 - android:layout_height="150dp" 7 + android:layout_height="145dp"
8 - android:layout_marginHorizontal="4dp" 8 + android:layout_marginHorizontal="6dp"
9 - android:layout_marginVertical="4dp" 9 + android:layout_marginBottom="3dp"
10 - android:background="@drawable/ic_coupon_background_new2"> 10 + android:background="@drawable/ic_coupon_background_new3">
11 11
12 <androidx.constraintlayout.widget.Guideline 12 <androidx.constraintlayout.widget.Guideline
13 android:id="@+id/gl_vertical_72_percent" 13 android:id="@+id/gl_vertical_72_percent"
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
30 <ly.warp.sdk.views.DividerView 30 <ly.warp.sdk.views.DividerView
31 android:id="@+id/v_separator" 31 android:id="@+id/v_separator"
32 android:layout_width="1dp" 32 android:layout_width="1dp"
33 - android:layout_height="match_parent" 33 + android:layout_height="0dp"
34 android:layout_marginVertical="16dp" 34 android:layout_marginVertical="16dp"
35 android:layout_marginStart="16dp" 35 android:layout_marginStart="16dp"
36 android:layerType="software" 36 android:layerType="software"
......