Showing
16 changed files
with
415 additions
and
347 deletions
... | @@ -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.4.6rc52' | 5 | + PUBLISH_VERSION = '4.5.4.6rc53' |
6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' | 6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' |
7 | } | 7 | } |
8 | 8 | ... | ... |
... | @@ -13,6 +13,7 @@ import android.widget.LinearLayout; | ... | @@ -13,6 +13,7 @@ import android.widget.LinearLayout; |
13 | import android.widget.RelativeLayout; | 13 | import android.widget.RelativeLayout; |
14 | import android.widget.TextView; | 14 | import android.widget.TextView; |
15 | 15 | ||
16 | +import androidx.cardview.widget.CardView; | ||
16 | import androidx.core.content.ContextCompat; | 17 | import androidx.core.content.ContextCompat; |
17 | import androidx.recyclerview.widget.LinearLayoutManager; | 18 | import androidx.recyclerview.widget.LinearLayoutManager; |
18 | import androidx.recyclerview.widget.RecyclerView; | 19 | import androidx.recyclerview.widget.RecyclerView; |
... | @@ -58,7 +59,8 @@ public class LoyaltyAnalysisActivity extends Activity implements View.OnClickLis | ... | @@ -58,7 +59,8 @@ public class LoyaltyAnalysisActivity extends Activity implements View.OnClickLis |
58 | private ExpiredCouponAdapter mAdapterExpiredCoupons; | 59 | private ExpiredCouponAdapter mAdapterExpiredCoupons; |
59 | private SharedCouponAdapter mAdapterSharedCoupons; | 60 | private SharedCouponAdapter mAdapterSharedCoupons; |
60 | private LinearLayout mLlExpiredTab, mLlSharedTab, mLlShowMoreExpired, mLlShowMoreShared; | 61 | private LinearLayout mLlExpiredTab, mLlSharedTab, mLlShowMoreExpired, mLlShowMoreShared; |
61 | - private RelativeLayout mRlExpiredView, mRlSharedView; | 62 | + private RelativeLayout mRlExpiredView; |
63 | + private CardView mRlSharedView; | ||
62 | private SharingList mSharedCoupons = new SharingList(); | 64 | private SharingList mSharedCoupons = new SharingList(); |
63 | private int mTimer = 0; | 65 | private int mTimer = 0; |
64 | private Handler mSecondsHandler; | 66 | private Handler mSecondsHandler; | ... | ... |
... | @@ -136,11 +136,12 @@ public class ExpiredCouponAdapter extends RecyclerView.Adapter<ExpiredCouponAdap | ... | @@ -136,11 +136,12 @@ public class ExpiredCouponAdapter extends RecyclerView.Adapter<ExpiredCouponAdap |
136 | Date newDate = new Date(); | 136 | Date newDate = new Date(); |
137 | try { | 137 | try { |
138 | newDate = simpleDateFormat.parse(couponItem.getChangesDates().optString("redeemed")); | 138 | newDate = simpleDateFormat.parse(couponItem.getChangesDates().optString("redeemed")); |
139 | + simpleDateFormat = new SimpleDateFormat("dd/MM/yyyy"); | ||
140 | + holder.tvCouponDate.setText(simpleDateFormat.format(newDate != null ? newDate : "")); | ||
139 | } catch (ParseException e) { | 141 | } catch (ParseException e) { |
140 | e.printStackTrace(); | 142 | e.printStackTrace(); |
143 | + holder.tvCouponDate.setVisibility(View.GONE); | ||
141 | } | 144 | } |
142 | - simpleDateFormat = new SimpleDateFormat("dd/MM/yyyy"); | ||
143 | - holder.tvCouponDate.setText(simpleDateFormat.format(newDate != null ? newDate : "")); | ||
144 | 145 | ||
145 | String itemValue = String.format("%.02f", Float.valueOf(couponItem.getDiscount())); | 146 | String itemValue = String.format("%.02f", Float.valueOf(couponItem.getDiscount())); |
146 | holder.tvCouponValue.setText(itemValue + mContext.getResources().getString(R.string.euro)); | 147 | holder.tvCouponValue.setText(itemValue + mContext.getResources().getString(R.string.euro)); | ... | ... |
... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
2 | <shape xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <shape xmlns:android="http://schemas.android.com/apk/res/android" |
3 | android:shape="rectangle"> | 3 | android:shape="rectangle"> |
4 | <corners android:radius="16dp" /> | 4 | <corners android:radius="16dp" /> |
5 | - <stroke android:width="1dp" android:color="@color/cos_grey2" /> | 5 | +<!-- <stroke android:width="1dp" android:color="@color/cos_grey2" />--> |
6 | <solid | 6 | <solid |
7 | android:color="@color/white" /> | 7 | android:color="@color/white" /> |
8 | </shape> | 8 | </shape> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -6,8 +6,8 @@ | ... | @@ -6,8 +6,8 @@ |
6 | android:layout_width="match_parent" | 6 | android:layout_width="match_parent" |
7 | android:layout_height="150dp" | 7 | android:layout_height="150dp" |
8 | android:layout_marginHorizontal="6dp" | 8 | android:layout_marginHorizontal="6dp" |
9 | - android:layout_marginVertical="6dp" | 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" |
... | @@ -92,8 +92,8 @@ | ... | @@ -92,8 +92,8 @@ |
92 | fontPath="fonts/PeridotPE-Regular.ttf" | 92 | fontPath="fonts/PeridotPE-Regular.ttf" |
93 | android:layout_width="0dp" | 93 | android:layout_width="0dp" |
94 | android:layout_height="wrap_content" | 94 | android:layout_height="wrap_content" |
95 | - android:maxLines="3" | ||
96 | android:ellipsize="end" | 95 | android:ellipsize="end" |
96 | + android:maxLines="3" | ||
97 | android:textColor="@color/cos_light_black" | 97 | android:textColor="@color/cos_light_black" |
98 | android:textSize="12sp" | 98 | android:textSize="12sp" |
99 | app:layout_constraintBottom_toBottomOf="parent" | 99 | app:layout_constraintBottom_toBottomOf="parent" | ... | ... |
... | @@ -54,7 +54,7 @@ | ... | @@ -54,7 +54,7 @@ |
54 | android:orientation="vertical" | 54 | android:orientation="vertical" |
55 | android:overScrollMode="never" | 55 | android:overScrollMode="never" |
56 | android:scrollbars="none" | 56 | android:scrollbars="none" |
57 | - android:paddingVertical="24dp" /> | 57 | + android:paddingVertical="16dp" /> |
58 | </RelativeLayout> | 58 | </RelativeLayout> |
59 | 59 | ||
60 | <TextView | 60 | <TextView | ... | ... |
... | @@ -59,7 +59,7 @@ | ... | @@ -59,7 +59,7 @@ |
59 | <ImageView | 59 | <ImageView |
60 | android:id="@+id/imageView6" | 60 | android:id="@+id/imageView6" |
61 | android:layout_width="match_parent" | 61 | android:layout_width="match_parent" |
62 | - android:layout_height="295dp" | 62 | + android:layout_height="255dp" |
63 | android:scaleType="centerCrop" | 63 | android:scaleType="centerCrop" |
64 | app:layout_constraintStart_toStartOf="parent" | 64 | app:layout_constraintStart_toStartOf="parent" |
65 | app:layout_constraintTop_toTopOf="parent" | 65 | app:layout_constraintTop_toTopOf="parent" | ... | ... |
... | @@ -43,8 +43,8 @@ | ... | @@ -43,8 +43,8 @@ |
43 | <ScrollView | 43 | <ScrollView |
44 | android:layout_width="match_parent" | 44 | android:layout_width="match_parent" |
45 | android:layout_height="match_parent" | 45 | android:layout_height="match_parent" |
46 | - android:scrollbars="none" | 46 | + android:overScrollMode="never" |
47 | - android:overScrollMode="never"> | 47 | + android:scrollbars="none"> |
48 | 48 | ||
49 | <LinearLayout | 49 | <LinearLayout |
50 | android:id="@+id/cl_loyalty_info_view_inner" | 50 | android:id="@+id/cl_loyalty_info_view_inner" |
... | @@ -57,7 +57,7 @@ | ... | @@ -57,7 +57,7 @@ |
57 | <ImageView | 57 | <ImageView |
58 | android:id="@+id/imageView6" | 58 | android:id="@+id/imageView6" |
59 | android:layout_width="match_parent" | 59 | android:layout_width="match_parent" |
60 | - android:layout_height="295dp" | 60 | + android:layout_height="255dp" |
61 | android:scaleType="centerCrop" | 61 | android:scaleType="centerCrop" |
62 | tools:src="@drawable/carousel_banner" /> | 62 | tools:src="@drawable/carousel_banner" /> |
63 | 63 | ||
... | @@ -115,9 +115,9 @@ | ... | @@ -115,9 +115,9 @@ |
115 | android:layout_height="50dp" | 115 | android:layout_height="50dp" |
116 | android:layout_marginHorizontal="32dp" | 116 | android:layout_marginHorizontal="32dp" |
117 | android:layout_marginTop="12dp" | 117 | android:layout_marginTop="12dp" |
118 | - android:includeFontPadding="false" | ||
119 | android:background="@drawable/banner_border_light_grey" | 118 | android:background="@drawable/banner_border_light_grey" |
120 | android:gravity="center" | 119 | android:gravity="center" |
120 | + android:includeFontPadding="false" | ||
121 | android:textColor="@color/cos_light_black" | 121 | android:textColor="@color/cos_light_black" |
122 | android:textIsSelectable="true" | 122 | android:textIsSelectable="true" |
123 | android:textSize="25sp" | 123 | android:textSize="25sp" |
... | @@ -129,8 +129,8 @@ | ... | @@ -129,8 +129,8 @@ |
129 | android:layout_height="wrap_content" | 129 | android:layout_height="wrap_content" |
130 | android:layout_marginTop="20dp" | 130 | android:layout_marginTop="20dp" |
131 | android:gravity="center" | 131 | android:gravity="center" |
132 | - android:visibility="gone" | 132 | + android:orientation="vertical" |
133 | - android:orientation="vertical"> | 133 | + android:visibility="gone"> |
134 | 134 | ||
135 | <LinearLayout | 135 | <LinearLayout |
136 | android:id="@+id/ll_barcode_container_items" | 136 | android:id="@+id/ll_barcode_container_items" |
... | @@ -144,8 +144,8 @@ | ... | @@ -144,8 +144,8 @@ |
144 | <View | 144 | <View |
145 | android:id="@+id/view5" | 145 | android:id="@+id/view5" |
146 | android:layout_width="match_parent" | 146 | android:layout_width="match_parent" |
147 | - android:layout_marginHorizontal="32dp" | ||
148 | android:layout_height="0.8dp" | 147 | android:layout_height="0.8dp" |
148 | + android:layout_marginHorizontal="32dp" | ||
149 | android:background="#E6E6E6" /> | 149 | android:background="#E6E6E6" /> |
150 | 150 | ||
151 | <ImageView | 151 | <ImageView |
... | @@ -169,8 +169,8 @@ | ... | @@ -169,8 +169,8 @@ |
169 | <View | 169 | <View |
170 | android:id="@+id/view4" | 170 | android:id="@+id/view4" |
171 | android:layout_width="match_parent" | 171 | android:layout_width="match_parent" |
172 | - android:layout_marginHorizontal="32dp" | ||
173 | android:layout_height="0.8dp" | 172 | android:layout_height="0.8dp" |
173 | + android:layout_marginHorizontal="32dp" | ||
174 | android:layout_marginTop="20dp" | 174 | android:layout_marginTop="20dp" |
175 | android:background="#E6E6E6" /> | 175 | android:background="#E6E6E6" /> |
176 | </LinearLayout> | 176 | </LinearLayout> |
... | @@ -181,9 +181,9 @@ | ... | @@ -181,9 +181,9 @@ |
181 | android:layout_height="wrap_content" | 181 | android:layout_height="wrap_content" |
182 | android:layout_marginTop="20dp" | 182 | android:layout_marginTop="20dp" |
183 | android:gravity="center" | 183 | android:gravity="center" |
184 | + android:orientation="horizontal" | ||
184 | android:visibility="gone" | 185 | android:visibility="gone" |
185 | - tools:visibility="visible" | 186 | + tools:visibility="visible"> |
186 | - android:orientation="horizontal"> | ||
187 | 187 | ||
188 | <TextView | 188 | <TextView |
189 | android:id="@+id/tv_barcode" | 189 | android:id="@+id/tv_barcode" |
... | @@ -211,8 +211,8 @@ | ... | @@ -211,8 +211,8 @@ |
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="24dp" |
214 | + android:textColor="@color/cos_light_black" | ||
214 | android:textSize="16sp" | 215 | android:textSize="16sp" |
215 | - android:textColor="@color/cos_gray" | ||
216 | tools:text="@string/cos_coupon_date" /> | 216 | tools:text="@string/cos_coupon_date" /> |
217 | 217 | ||
218 | <LinearLayout | 218 | <LinearLayout |
... | @@ -317,8 +317,8 @@ | ... | @@ -317,8 +317,8 @@ |
317 | android:id="@+id/iv_terms_arrow" | 317 | android:id="@+id/iv_terms_arrow" |
318 | android:layout_width="14dp" | 318 | android:layout_width="14dp" |
319 | android:layout_height="14dp" | 319 | android:layout_height="14dp" |
320 | - android:layout_marginTop="3dp" | ||
321 | android:layout_marginStart="6dp" | 320 | android:layout_marginStart="6dp" |
321 | + android:layout_marginTop="3dp" | ||
322 | android:src="@drawable/ic_down_dark_new" /> | 322 | android:src="@drawable/ic_down_dark_new" /> |
323 | </LinearLayout> | 323 | </LinearLayout> |
324 | 324 | ||
... | @@ -330,7 +330,7 @@ | ... | @@ -330,7 +330,7 @@ |
330 | android:layout_below="@+id/ll_terms_inner" | 330 | android:layout_below="@+id/ll_terms_inner" |
331 | android:layout_marginHorizontal="32dp" | 331 | android:layout_marginHorizontal="32dp" |
332 | android:layout_marginTop="16dp" | 332 | android:layout_marginTop="16dp" |
333 | - android:textColor="@color/cos_gray" | 333 | + android:textColor="@color/cos_light_black" |
334 | android:textSize="16sp" | 334 | android:textSize="16sp" |
335 | android:visibility="gone" | 335 | android:visibility="gone" |
336 | tools:text="@string/cos_coupon_date" | 336 | tools:text="@string/cos_coupon_date" | ... | ... |
... | @@ -59,7 +59,7 @@ | ... | @@ -59,7 +59,7 @@ |
59 | <ImageView | 59 | <ImageView |
60 | android:id="@+id/imageView6" | 60 | android:id="@+id/imageView6" |
61 | android:layout_width="match_parent" | 61 | android:layout_width="match_parent" |
62 | - android:layout_height="295dp" | 62 | + android:layout_height="255dp" |
63 | android:scaleType="centerCrop" | 63 | android:scaleType="centerCrop" |
64 | app:layout_constraintStart_toStartOf="parent" | 64 | app:layout_constraintStart_toStartOf="parent" |
65 | app:layout_constraintTop_toTopOf="parent" | 65 | app:layout_constraintTop_toTopOf="parent" | ... | ... |
... | @@ -55,7 +55,7 @@ | ... | @@ -55,7 +55,7 @@ |
55 | <ImageView | 55 | <ImageView |
56 | android:id="@+id/imageView6" | 56 | android:id="@+id/imageView6" |
57 | android:layout_width="match_parent" | 57 | android:layout_width="match_parent" |
58 | - android:layout_height="295dp" | 58 | + android:layout_height="255dp" |
59 | android:scaleType="centerCrop" | 59 | android:scaleType="centerCrop" |
60 | tools:src="@drawable/carousel_banner" /> | 60 | tools:src="@drawable/carousel_banner" /> |
61 | 61 | ||
... | @@ -144,7 +144,7 @@ | ... | @@ -144,7 +144,7 @@ |
144 | android:layout_below="@+id/ll_terms_inner" | 144 | android:layout_below="@+id/ll_terms_inner" |
145 | android:layout_marginHorizontal="32dp" | 145 | android:layout_marginHorizontal="32dp" |
146 | android:layout_marginTop="16dp" | 146 | android:layout_marginTop="16dp" |
147 | - android:textColor="@color/cos_gray" | 147 | + android:textColor="@color/cos_light_black" |
148 | android:textSize="16sp" | 148 | android:textSize="16sp" |
149 | android:visibility="gone" | 149 | android:visibility="gone" |
150 | tools:text="@string/cos_coupon_date" | 150 | tools:text="@string/cos_coupon_date" | ... | ... |
... | @@ -79,44 +79,150 @@ | ... | @@ -79,44 +79,150 @@ |
79 | android:layout_width="match_parent" | 79 | android:layout_width="match_parent" |
80 | android:layout_height="wrap_content" | 80 | android:layout_height="wrap_content" |
81 | android:layout_below="@+id/iv_gift_circle_logo" | 81 | android:layout_below="@+id/iv_gift_circle_logo" |
82 | - android:layout_marginTop="32dp" | 82 | + android:layout_marginTop="30dp" |
83 | tools:visibility="gone"> | 83 | tools:visibility="gone"> |
84 | 84 | ||
85 | - <LinearLayout | 85 | + <androidx.cardview.widget.CardView |
86 | - android:id="@+id/ll_expired_coupons_title" | 86 | + android:id="@+id/cv_expired_coupons_title" |
87 | android:layout_width="match_parent" | 87 | android:layout_width="match_parent" |
88 | android:layout_height="wrap_content" | 88 | android:layout_height="wrap_content" |
89 | android:layout_marginHorizontal="12dp" | 89 | android:layout_marginHorizontal="12dp" |
90 | - android:background="@drawable/shape_cos_white_border" | 90 | + android:layout_marginTop="2dp" |
91 | - android:paddingVertical="16dp"> | 91 | + app:cardCornerRadius="16dp" |
92 | + app:cardElevation="2dp"> | ||
92 | 93 | ||
93 | - <TextView | 94 | + <LinearLayout |
94 | - android:id="@+id/tv_expired_coupons_title" | 95 | + android:id="@+id/ll_expired_coupons_title" |
95 | - fontPath="fonts/PeridotPE-Regular.ttf" | 96 | + android:layout_width="match_parent" |
96 | - android:layout_width="wrap_content" | ||
97 | android:layout_height="wrap_content" | 97 | android:layout_height="wrap_content" |
98 | - android:layout_marginHorizontal="32dp" | 98 | + android:background="@color/white" |
99 | - android:layout_marginVertical="8dp" | ||
100 | android:gravity="center" | 99 | android:gravity="center" |
101 | - android:includeFontPadding="false" | 100 | + android:paddingVertical="16dp"> |
102 | - android:textColor="@color/cos_light_black" | ||
103 | - android:textSize="16sp" | ||
104 | - tools:text="@string/cos_deals_win_title" /> | ||
105 | - </LinearLayout> | ||
106 | 101 | ||
107 | - <RelativeLayout | 102 | + <TextView |
103 | + android:id="@+id/tv_expired_coupons_title" | ||
104 | + fontPath="fonts/PeridotPE-Regular.ttf" | ||
105 | + android:layout_width="wrap_content" | ||
106 | + android:layout_height="wrap_content" | ||
107 | + android:layout_marginHorizontal="32dp" | ||
108 | + android:layout_marginVertical="8dp" | ||
109 | + android:gravity="center" | ||
110 | + android:includeFontPadding="false" | ||
111 | + android:textColor="@color/cos_light_black" | ||
112 | + android:textSize="16sp" | ||
113 | + tools:text="@string/cos_deals_win_title" /> | ||
114 | + </LinearLayout> | ||
115 | + </androidx.cardview.widget.CardView> | ||
116 | + | ||
117 | + <androidx.cardview.widget.CardView | ||
108 | android:layout_width="match_parent" | 118 | android:layout_width="match_parent" |
109 | android:layout_height="wrap_content" | 119 | android:layout_height="wrap_content" |
110 | - android:layout_below="@+id/ll_expired_coupons_title" | 120 | + android:layout_below="@+id/cv_expired_coupons_title" |
111 | android:layout_marginHorizontal="12dp" | 121 | android:layout_marginHorizontal="12dp" |
112 | android:layout_marginTop="12dp" | 122 | android:layout_marginTop="12dp" |
113 | - android:background="@drawable/shape_cos_white_border" | 123 | + android:layout_marginBottom="6dp" |
114 | - android:orientation="vertical" | 124 | + app:cardCornerRadius="16dp" |
125 | + app:cardElevation="2dp"> | ||
126 | + | ||
127 | + <RelativeLayout | ||
128 | + android:layout_width="match_parent" | ||
129 | + android:layout_height="wrap_content" | ||
130 | + android:background="@color/white" | ||
131 | + android:orientation="vertical" | ||
132 | + android:paddingHorizontal="16dp" | ||
133 | + android:paddingVertical="16dp"> | ||
134 | + | ||
135 | + <TextView | ||
136 | + android:id="@+id/tv_expired_title" | ||
137 | + fontPath="fonts/BTCosmo-Bold.ttf" | ||
138 | + android:layout_width="wrap_content" | ||
139 | + android:layout_height="wrap_content" | ||
140 | + android:text="@string/cos_analysis2" | ||
141 | + android:textColor="@color/cos_light_black" | ||
142 | + android:textSize="21sp" /> | ||
143 | + | ||
144 | + <LinearLayout | ||
145 | + android:layout_width="match_parent" | ||
146 | + android:layout_height="wrap_content" | ||
147 | + android:layout_below="@+id/tv_expired_title" | ||
148 | + android:layout_marginTop="32dp" | ||
149 | + android:orientation="vertical"> | ||
150 | + | ||
151 | + <androidx.recyclerview.widget.RecyclerView | ||
152 | + android:id="@+id/rv_expired_coupons" | ||
153 | + android:layout_width="match_parent" | ||
154 | + android:layout_height="wrap_content" | ||
155 | + android:orientation="vertical" | ||
156 | + android:overScrollMode="never" /> | ||
157 | + | ||
158 | + <LinearLayout | ||
159 | + android:id="@+id/ll_show_more_expired" | ||
160 | + android:layout_width="wrap_content" | ||
161 | + android:layout_height="wrap_content" | ||
162 | + android:layout_gravity="center" | ||
163 | + android:gravity="center" | ||
164 | + android:orientation="horizontal" | ||
165 | + android:paddingBottom="8dp" | ||
166 | + android:visibility="gone" | ||
167 | + tools:visibility="visible"> | ||
168 | + | ||
169 | + <TextView | ||
170 | + android:id="@+id/tv_expired_more" | ||
171 | + fontPath="fonts/PeridotPE-Bold.ttf" | ||
172 | + android:layout_width="wrap_content" | ||
173 | + android:layout_height="wrap_content" | ||
174 | + android:text="@string/cos_see_more" | ||
175 | + android:textColor="@color/cos_light_black" | ||
176 | + android:textSize="16sp" /> | ||
177 | + | ||
178 | + <ImageView | ||
179 | + android:id="@+id/iv_expired_more_arrow" | ||
180 | + android:layout_width="14dp" | ||
181 | + android:layout_height="14dp" | ||
182 | + android:layout_marginStart="6dp" | ||
183 | + android:layout_marginTop="3dp" | ||
184 | + android:src="@drawable/ic_down_dark_new" /> | ||
185 | + </LinearLayout> | ||
186 | + </LinearLayout> | ||
187 | + | ||
188 | + <TextView | ||
189 | + android:id="@+id/tv_expired_empty" | ||
190 | + fontPath="fonts/PeridotPE-Regular.ttf" | ||
191 | + android:layout_width="wrap_content" | ||
192 | + android:layout_height="wrap_content" | ||
193 | + android:layout_below="@+id/tv_expired_title" | ||
194 | + android:layout_centerHorizontal="true" | ||
195 | + android:layout_marginTop="56dp" | ||
196 | + android:text="@string/cos_empty_expired_coupons" | ||
197 | + android:textColor="@color/cos_light_black" | ||
198 | + android:textSize="16sp" | ||
199 | + android:visibility="gone" /> | ||
200 | + </RelativeLayout> | ||
201 | + </androidx.cardview.widget.CardView> | ||
202 | + </RelativeLayout> | ||
203 | + | ||
204 | + <androidx.cardview.widget.CardView | ||
205 | + android:id="@+id/rl_shared_view" | ||
206 | + android:layout_width="match_parent" | ||
207 | + android:layout_height="wrap_content" | ||
208 | + android:layout_below="@+id/iv_gift_circle_logo" | ||
209 | + android:layout_marginHorizontal="12dp" | ||
210 | + android:layout_marginTop="30dp" | ||
211 | + android:layout_marginBottom="6dp" | ||
212 | + android:visibility="gone" | ||
213 | + app:cardCornerRadius="16dp" | ||
214 | + app:cardElevation="2dp"> | ||
215 | + | ||
216 | + <RelativeLayout | ||
217 | + android:layout_width="match_parent" | ||
218 | + android:layout_height="wrap_content" | ||
219 | + android:layout_marginTop="2dp" | ||
220 | + android:background="@color/white" | ||
115 | android:paddingHorizontal="16dp" | 221 | android:paddingHorizontal="16dp" |
116 | android:paddingVertical="16dp"> | 222 | android:paddingVertical="16dp"> |
117 | 223 | ||
118 | <TextView | 224 | <TextView |
119 | - android:id="@+id/tv_expired_title" | 225 | + android:id="@+id/tv_shared_title" |
120 | fontPath="fonts/BTCosmo-Bold.ttf" | 226 | fontPath="fonts/BTCosmo-Bold.ttf" |
121 | android:layout_width="wrap_content" | 227 | android:layout_width="wrap_content" |
122 | android:layout_height="wrap_content" | 228 | android:layout_height="wrap_content" |
... | @@ -124,23 +230,22 @@ | ... | @@ -124,23 +230,22 @@ |
124 | android:textColor="@color/cos_light_black" | 230 | android:textColor="@color/cos_light_black" |
125 | android:textSize="21sp" /> | 231 | android:textSize="21sp" /> |
126 | 232 | ||
127 | - | ||
128 | <LinearLayout | 233 | <LinearLayout |
129 | android:layout_width="match_parent" | 234 | android:layout_width="match_parent" |
130 | android:layout_height="wrap_content" | 235 | android:layout_height="wrap_content" |
131 | - android:layout_below="@+id/tv_expired_title" | 236 | + android:layout_below="@+id/tv_shared_title" |
132 | - android:layout_marginTop="32dp" | 237 | + android:layout_marginTop="24dp" |
133 | android:orientation="vertical"> | 238 | android:orientation="vertical"> |
134 | 239 | ||
135 | <androidx.recyclerview.widget.RecyclerView | 240 | <androidx.recyclerview.widget.RecyclerView |
136 | - android:id="@+id/rv_expired_coupons" | 241 | + android:id="@+id/rv_shared_coupons" |
137 | android:layout_width="match_parent" | 242 | android:layout_width="match_parent" |
138 | android:layout_height="wrap_content" | 243 | android:layout_height="wrap_content" |
139 | android:orientation="vertical" | 244 | android:orientation="vertical" |
140 | android:overScrollMode="never" /> | 245 | android:overScrollMode="never" /> |
141 | 246 | ||
142 | <LinearLayout | 247 | <LinearLayout |
143 | - android:id="@+id/ll_show_more_expired" | 248 | + android:id="@+id/ll_show_more_shared" |
144 | android:layout_width="wrap_content" | 249 | android:layout_width="wrap_content" |
145 | android:layout_height="wrap_content" | 250 | android:layout_height="wrap_content" |
146 | android:layout_gravity="center" | 251 | android:layout_gravity="center" |
... | @@ -151,7 +256,7 @@ | ... | @@ -151,7 +256,7 @@ |
151 | tools:visibility="visible"> | 256 | tools:visibility="visible"> |
152 | 257 | ||
153 | <TextView | 258 | <TextView |
154 | - android:id="@+id/tv_expired_more" | 259 | + android:id="@+id/tv_shared_more" |
155 | fontPath="fonts/PeridotPE-Bold.ttf" | 260 | fontPath="fonts/PeridotPE-Bold.ttf" |
156 | android:layout_width="wrap_content" | 261 | android:layout_width="wrap_content" |
157 | android:layout_height="wrap_content" | 262 | android:layout_height="wrap_content" |
... | @@ -160,7 +265,7 @@ | ... | @@ -160,7 +265,7 @@ |
160 | android:textSize="16sp" /> | 265 | android:textSize="16sp" /> |
161 | 266 | ||
162 | <ImageView | 267 | <ImageView |
163 | - android:id="@+id/iv_expired_more_arrow" | 268 | + android:id="@+id/iv_shared_more_arrow" |
164 | android:layout_width="14dp" | 269 | android:layout_width="14dp" |
165 | android:layout_height="14dp" | 270 | android:layout_height="14dp" |
166 | android:layout_marginStart="6dp" | 271 | android:layout_marginStart="6dp" |
... | @@ -168,101 +273,21 @@ | ... | @@ -168,101 +273,21 @@ |
168 | android:src="@drawable/ic_down_dark_new" /> | 273 | android:src="@drawable/ic_down_dark_new" /> |
169 | </LinearLayout> | 274 | </LinearLayout> |
170 | </LinearLayout> | 275 | </LinearLayout> |
171 | - </RelativeLayout> | ||
172 | - | ||
173 | - <TextView | ||
174 | - android:id="@+id/tv_expired_empty" | ||
175 | - fontPath="fonts/PeridotPE-Regular.ttf" | ||
176 | - android:layout_width="wrap_content" | ||
177 | - android:layout_height="wrap_content" | ||
178 | - android:layout_below="@+id/tv_expired_title" | ||
179 | - android:layout_centerHorizontal="true" | ||
180 | - android:layout_marginTop="56dp" | ||
181 | - android:text="@string/cos_empty_expired_coupons" | ||
182 | - android:textColor="@color/cos_light_black" | ||
183 | - android:textSize="16sp" | ||
184 | - android:visibility="gone" /> | ||
185 | - </RelativeLayout> | ||
186 | - | ||
187 | - <RelativeLayout | ||
188 | - android:id="@+id/rl_shared_view" | ||
189 | - android:layout_width="match_parent" | ||
190 | - android:layout_height="wrap_content" | ||
191 | - android:layout_below="@+id/iv_gift_circle_logo" | ||
192 | - android:layout_marginHorizontal="12dp" | ||
193 | - android:layout_marginTop="32dp" | ||
194 | - android:background="@drawable/shape_cos_white_border" | ||
195 | - android:paddingHorizontal="16dp" | ||
196 | - android:paddingVertical="16dp" | ||
197 | - android:visibility="gone"> | ||
198 | - | ||
199 | - <TextView | ||
200 | - android:id="@+id/tv_shared_title" | ||
201 | - fontPath="fonts/BTCosmo-Bold.ttf" | ||
202 | - android:layout_width="wrap_content" | ||
203 | - android:layout_height="wrap_content" | ||
204 | - android:text="@string/cos_analysis2" | ||
205 | - android:textColor="@color/cos_light_black" | ||
206 | - android:textSize="21sp" /> | ||
207 | - | ||
208 | - | ||
209 | - <LinearLayout | ||
210 | - android:layout_width="match_parent" | ||
211 | - android:layout_height="wrap_content" | ||
212 | - android:layout_below="@+id/tv_shared_title" | ||
213 | - android:layout_marginTop="24dp" | ||
214 | - android:orientation="vertical"> | ||
215 | - | ||
216 | - <androidx.recyclerview.widget.RecyclerView | ||
217 | - android:id="@+id/rv_shared_coupons" | ||
218 | - android:layout_width="match_parent" | ||
219 | - android:layout_height="wrap_content" | ||
220 | - android:orientation="vertical" | ||
221 | - android:overScrollMode="never" /> | ||
222 | 276 | ||
223 | - <LinearLayout | 277 | + <TextView |
224 | - android:id="@+id/ll_show_more_shared" | 278 | + android:id="@+id/tv_shared_empty" |
279 | + fontPath="fonts/PeridotPE-Regular.ttf" | ||
225 | android:layout_width="wrap_content" | 280 | android:layout_width="wrap_content" |
226 | android:layout_height="wrap_content" | 281 | android:layout_height="wrap_content" |
227 | - android:layout_gravity="center" | 282 | + android:layout_below="@+id/tv_shared_title" |
228 | - android:gravity="center" | 283 | + android:layout_centerHorizontal="true" |
229 | - android:orientation="horizontal" | 284 | + android:layout_marginTop="56dp" |
230 | - android:paddingBottom="8dp" | 285 | + android:text="@string/cos_empty_shared_coupons" |
231 | - android:visibility="gone" | 286 | + android:textColor="@color/cos_light_black" |
232 | - tools:visibility="visible"> | 287 | + android:textSize="16sp" |
233 | - | 288 | + android:visibility="gone" /> |
234 | - <TextView | 289 | + </RelativeLayout> |
235 | - android:id="@+id/tv_shared_more" | 290 | + </androidx.cardview.widget.CardView> |
236 | - fontPath="fonts/PeridotPE-Bold.ttf" | ||
237 | - android:layout_width="wrap_content" | ||
238 | - android:layout_height="wrap_content" | ||
239 | - android:text="@string/cos_see_more" | ||
240 | - android:textColor="@color/cos_light_black" | ||
241 | - android:textSize="16sp" /> | ||
242 | - | ||
243 | - <ImageView | ||
244 | - android:id="@+id/iv_shared_more_arrow" | ||
245 | - android:layout_width="14dp" | ||
246 | - android:layout_height="14dp" | ||
247 | - android:layout_marginStart="6dp" | ||
248 | - android:layout_marginTop="3dp" | ||
249 | - android:src="@drawable/ic_down_dark_new" /> | ||
250 | - </LinearLayout> | ||
251 | - </LinearLayout> | ||
252 | - | ||
253 | - <TextView | ||
254 | - android:id="@+id/tv_shared_empty" | ||
255 | - fontPath="fonts/PeridotPE-Regular.ttf" | ||
256 | - android:layout_width="wrap_content" | ||
257 | - android:layout_height="wrap_content" | ||
258 | - android:layout_below="@+id/tv_shared_title" | ||
259 | - android:layout_centerHorizontal="true" | ||
260 | - android:layout_marginTop="56dp" | ||
261 | - android:text="@string/cos_empty_shared_coupons" | ||
262 | - android:textColor="@color/cos_light_black" | ||
263 | - android:textSize="16sp" | ||
264 | - android:visibility="gone" /> | ||
265 | - </RelativeLayout> | ||
266 | </RelativeLayout> | 291 | </RelativeLayout> |
267 | </androidx.core.widget.NestedScrollView> | 292 | </androidx.core.widget.NestedScrollView> |
268 | </RelativeLayout> | 293 | </RelativeLayout> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -82,41 +82,148 @@ | ... | @@ -82,41 +82,148 @@ |
82 | android:layout_marginTop="32dp" | 82 | android:layout_marginTop="32dp" |
83 | tools:visibility="gone"> | 83 | tools:visibility="gone"> |
84 | 84 | ||
85 | - <LinearLayout | 85 | + <androidx.cardview.widget.CardView |
86 | - android:id="@+id/ll_expired_coupons_title" | 86 | + android:id="@+id/cv_expired_coupons_title" |
87 | android:layout_width="match_parent" | 87 | android:layout_width="match_parent" |
88 | android:layout_height="wrap_content" | 88 | android:layout_height="wrap_content" |
89 | android:layout_marginHorizontal="12dp" | 89 | android:layout_marginHorizontal="12dp" |
90 | - android:background="@drawable/shape_cos_white_border" | 90 | + android:layout_marginTop="2dp" |
91 | - android:paddingVertical="16dp"> | 91 | + app:cardCornerRadius="16dp" |
92 | + app:cardElevation="2dp"> | ||
92 | 93 | ||
93 | - <TextView | 94 | + <LinearLayout |
94 | - android:id="@+id/tv_expired_coupons_title" | 95 | + android:id="@+id/ll_expired_coupons_title" |
95 | - fontPath="fonts/PeridotPE-Regular.ttf" | 96 | + android:layout_width="match_parent" |
96 | - android:layout_width="wrap_content" | ||
97 | android:layout_height="wrap_content" | 97 | android:layout_height="wrap_content" |
98 | - android:layout_marginHorizontal="32dp" | 98 | + android:background="@color/white" |
99 | - android:layout_marginVertical="8dp" | ||
100 | android:gravity="center" | 99 | android:gravity="center" |
101 | - android:includeFontPadding="false" | 100 | + android:paddingVertical="16dp"> |
102 | - android:textColor="@color/cos_light_black" | ||
103 | - android:textSize="16sp" | ||
104 | - tools:text="@string/cos_deals_win_title" /> | ||
105 | - </LinearLayout> | ||
106 | 101 | ||
107 | - <RelativeLayout | 102 | + <TextView |
103 | + android:id="@+id/tv_expired_coupons_title" | ||
104 | + fontPath="fonts/PeridotPE-Regular.ttf" | ||
105 | + android:layout_width="wrap_content" | ||
106 | + android:layout_height="wrap_content" | ||
107 | + android:layout_marginHorizontal="32dp" | ||
108 | + android:layout_marginVertical="8dp" | ||
109 | + android:gravity="center" | ||
110 | + android:includeFontPadding="false" | ||
111 | + android:textColor="@color/cos_light_black" | ||
112 | + android:textSize="16sp" | ||
113 | + tools:text="@string/cos_deals_win_title" /> | ||
114 | + </LinearLayout> | ||
115 | + </androidx.cardview.widget.CardView> | ||
116 | + | ||
117 | + <androidx.cardview.widget.CardView | ||
108 | android:layout_width="match_parent" | 118 | android:layout_width="match_parent" |
109 | android:layout_height="wrap_content" | 119 | android:layout_height="wrap_content" |
110 | - android:layout_below="@+id/ll_expired_coupons_title" | 120 | + android:layout_below="@+id/cv_expired_coupons_title" |
111 | android:layout_marginHorizontal="12dp" | 121 | android:layout_marginHorizontal="12dp" |
112 | android:layout_marginTop="12dp" | 122 | android:layout_marginTop="12dp" |
113 | - android:background="@drawable/shape_cos_white_border" | 123 | + android:layout_marginBottom="6dp" |
114 | - android:orientation="vertical" | 124 | + app:cardCornerRadius="16dp" |
125 | + app:cardElevation="2dp"> | ||
126 | + | ||
127 | + <RelativeLayout | ||
128 | + android:layout_width="match_parent" | ||
129 | + android:layout_height="wrap_content" | ||
130 | + android:background="@color/white" | ||
131 | + android:orientation="vertical" | ||
132 | + android:paddingHorizontal="16dp" | ||
133 | + android:paddingVertical="16dp"> | ||
134 | + | ||
135 | + <TextView | ||
136 | + android:id="@+id/tv_expired_title" | ||
137 | + fontPath="fonts/BTCosmo-Bold.ttf" | ||
138 | + android:layout_width="wrap_content" | ||
139 | + android:layout_height="wrap_content" | ||
140 | + android:text="@string/cos_analysis2" | ||
141 | + android:textColor="@color/cos_light_black" | ||
142 | + android:textSize="21sp" /> | ||
143 | + | ||
144 | + | ||
145 | + <LinearLayout | ||
146 | + android:layout_width="match_parent" | ||
147 | + android:layout_height="wrap_content" | ||
148 | + android:layout_below="@+id/tv_expired_title" | ||
149 | + android:layout_marginTop="32dp" | ||
150 | + android:orientation="vertical"> | ||
151 | + | ||
152 | + <androidx.recyclerview.widget.RecyclerView | ||
153 | + android:id="@+id/rv_expired_coupons" | ||
154 | + android:layout_width="match_parent" | ||
155 | + android:layout_height="wrap_content" | ||
156 | + android:orientation="vertical" | ||
157 | + android:overScrollMode="never" /> | ||
158 | + | ||
159 | + <LinearLayout | ||
160 | + android:id="@+id/ll_show_more_expired" | ||
161 | + android:layout_width="wrap_content" | ||
162 | + android:layout_height="wrap_content" | ||
163 | + android:layout_gravity="center" | ||
164 | + android:gravity="center" | ||
165 | + android:orientation="horizontal" | ||
166 | + android:paddingBottom="8dp" | ||
167 | + android:visibility="gone" | ||
168 | + tools:visibility="visible"> | ||
169 | + | ||
170 | + <TextView | ||
171 | + android:id="@+id/tv_expired_more" | ||
172 | + fontPath="fonts/PeridotPE-Bold.ttf" | ||
173 | + android:layout_width="wrap_content" | ||
174 | + android:layout_height="wrap_content" | ||
175 | + android:text="@string/cos_see_more" | ||
176 | + android:textColor="@color/cos_light_black" | ||
177 | + android:textSize="16sp" /> | ||
178 | + | ||
179 | + <ImageView | ||
180 | + android:id="@+id/iv_expired_more_arrow" | ||
181 | + android:layout_width="14dp" | ||
182 | + android:layout_height="14dp" | ||
183 | + android:layout_marginStart="6dp" | ||
184 | + android:layout_marginTop="3dp" | ||
185 | + android:src="@drawable/ic_down_dark_new" /> | ||
186 | + </LinearLayout> | ||
187 | + </LinearLayout> | ||
188 | + | ||
189 | + <TextView | ||
190 | + android:id="@+id/tv_expired_empty" | ||
191 | + fontPath="fonts/PeridotPE-Regular.ttf" | ||
192 | + android:layout_width="wrap_content" | ||
193 | + android:layout_height="wrap_content" | ||
194 | + android:layout_below="@+id/tv_expired_title" | ||
195 | + android:layout_centerHorizontal="true" | ||
196 | + android:layout_marginTop="56dp" | ||
197 | + android:text="@string/cos_empty_expired_coupons" | ||
198 | + android:textColor="@color/cos_light_black" | ||
199 | + android:textSize="16sp" | ||
200 | + android:visibility="gone" /> | ||
201 | + </RelativeLayout> | ||
202 | + </androidx.cardview.widget.CardView> | ||
203 | + </RelativeLayout> | ||
204 | + | ||
205 | + <androidx.cardview.widget.CardView | ||
206 | + android:id="@+id/rl_shared_view" | ||
207 | + android:layout_width="match_parent" | ||
208 | + android:layout_height="wrap_content" | ||
209 | + android:layout_below="@+id/iv_gift_circle_logo" | ||
210 | + android:layout_marginHorizontal="12dp" | ||
211 | + android:layout_marginTop="30dp" | ||
212 | + android:layout_marginBottom="6dp" | ||
213 | + android:visibility="gone" | ||
214 | + app:cardCornerRadius="16dp" | ||
215 | + app:cardElevation="2dp"> | ||
216 | + | ||
217 | + <RelativeLayout | ||
218 | + android:layout_width="match_parent" | ||
219 | + android:layout_height="wrap_content" | ||
220 | + android:layout_marginTop="2dp" | ||
221 | + android:background="@color/white" | ||
115 | android:paddingHorizontal="16dp" | 222 | android:paddingHorizontal="16dp" |
116 | android:paddingVertical="16dp"> | 223 | android:paddingVertical="16dp"> |
117 | 224 | ||
118 | <TextView | 225 | <TextView |
119 | - android:id="@+id/tv_expired_title" | 226 | + android:id="@+id/tv_shared_title" |
120 | fontPath="fonts/BTCosmo-Bold.ttf" | 227 | fontPath="fonts/BTCosmo-Bold.ttf" |
121 | android:layout_width="wrap_content" | 228 | android:layout_width="wrap_content" |
122 | android:layout_height="wrap_content" | 229 | android:layout_height="wrap_content" |
... | @@ -124,23 +231,22 @@ | ... | @@ -124,23 +231,22 @@ |
124 | android:textColor="@color/cos_light_black" | 231 | android:textColor="@color/cos_light_black" |
125 | android:textSize="21sp" /> | 232 | android:textSize="21sp" /> |
126 | 233 | ||
127 | - | ||
128 | <LinearLayout | 234 | <LinearLayout |
129 | android:layout_width="match_parent" | 235 | android:layout_width="match_parent" |
130 | android:layout_height="wrap_content" | 236 | android:layout_height="wrap_content" |
131 | - android:layout_below="@+id/tv_expired_title" | 237 | + android:layout_below="@+id/tv_shared_title" |
132 | - android:layout_marginTop="32dp" | 238 | + android:layout_marginTop="24dp" |
133 | android:orientation="vertical"> | 239 | android:orientation="vertical"> |
134 | 240 | ||
135 | <androidx.recyclerview.widget.RecyclerView | 241 | <androidx.recyclerview.widget.RecyclerView |
136 | - android:id="@+id/rv_expired_coupons" | 242 | + android:id="@+id/rv_shared_coupons" |
137 | android:layout_width="match_parent" | 243 | android:layout_width="match_parent" |
138 | android:layout_height="wrap_content" | 244 | android:layout_height="wrap_content" |
139 | android:orientation="vertical" | 245 | android:orientation="vertical" |
140 | android:overScrollMode="never" /> | 246 | android:overScrollMode="never" /> |
141 | 247 | ||
142 | <LinearLayout | 248 | <LinearLayout |
143 | - android:id="@+id/ll_show_more_expired" | 249 | + android:id="@+id/ll_show_more_shared" |
144 | android:layout_width="wrap_content" | 250 | android:layout_width="wrap_content" |
145 | android:layout_height="wrap_content" | 251 | android:layout_height="wrap_content" |
146 | android:layout_gravity="center" | 252 | android:layout_gravity="center" |
... | @@ -151,7 +257,7 @@ | ... | @@ -151,7 +257,7 @@ |
151 | tools:visibility="visible"> | 257 | tools:visibility="visible"> |
152 | 258 | ||
153 | <TextView | 259 | <TextView |
154 | - android:id="@+id/tv_expired_more" | 260 | + android:id="@+id/tv_shared_more" |
155 | fontPath="fonts/PeridotPE-Bold.ttf" | 261 | fontPath="fonts/PeridotPE-Bold.ttf" |
156 | android:layout_width="wrap_content" | 262 | android:layout_width="wrap_content" |
157 | android:layout_height="wrap_content" | 263 | android:layout_height="wrap_content" |
... | @@ -160,7 +266,7 @@ | ... | @@ -160,7 +266,7 @@ |
160 | android:textSize="16sp" /> | 266 | android:textSize="16sp" /> |
161 | 267 | ||
162 | <ImageView | 268 | <ImageView |
163 | - android:id="@+id/iv_expired_more_arrow" | 269 | + android:id="@+id/iv_shared_more_arrow" |
164 | android:layout_width="14dp" | 270 | android:layout_width="14dp" |
165 | android:layout_height="14dp" | 271 | android:layout_height="14dp" |
166 | android:layout_marginStart="6dp" | 272 | android:layout_marginStart="6dp" |
... | @@ -168,101 +274,21 @@ | ... | @@ -168,101 +274,21 @@ |
168 | android:src="@drawable/ic_down_dark_new" /> | 274 | android:src="@drawable/ic_down_dark_new" /> |
169 | </LinearLayout> | 275 | </LinearLayout> |
170 | </LinearLayout> | 276 | </LinearLayout> |
171 | - </RelativeLayout> | ||
172 | - | ||
173 | - <TextView | ||
174 | - android:id="@+id/tv_expired_empty" | ||
175 | - fontPath="fonts/PeridotPE-Regular.ttf" | ||
176 | - android:layout_width="wrap_content" | ||
177 | - android:layout_height="wrap_content" | ||
178 | - android:layout_below="@+id/tv_expired_title" | ||
179 | - android:layout_centerHorizontal="true" | ||
180 | - android:layout_marginTop="56dp" | ||
181 | - android:text="@string/cos_empty_expired_coupons" | ||
182 | - android:textColor="@color/cos_light_black" | ||
183 | - android:textSize="16sp" | ||
184 | - android:visibility="gone" /> | ||
185 | - </RelativeLayout> | ||
186 | 277 | ||
187 | - <RelativeLayout | 278 | + <TextView |
188 | - android:id="@+id/rl_shared_view" | 279 | + android:id="@+id/tv_shared_empty" |
189 | - android:layout_width="match_parent" | 280 | + fontPath="fonts/PeridotPE-Regular.ttf" |
190 | - android:layout_height="wrap_content" | ||
191 | - android:layout_below="@+id/iv_gift_circle_logo" | ||
192 | - android:layout_marginHorizontal="12dp" | ||
193 | - android:layout_marginTop="32dp" | ||
194 | - android:background="@drawable/shape_cos_white_border" | ||
195 | - android:paddingHorizontal="16dp" | ||
196 | - android:paddingVertical="16dp" | ||
197 | - android:visibility="gone"> | ||
198 | - | ||
199 | - <TextView | ||
200 | - android:id="@+id/tv_shared_title" | ||
201 | - fontPath="fonts/BTCosmo-Bold.ttf" | ||
202 | - android:layout_width="wrap_content" | ||
203 | - android:layout_height="wrap_content" | ||
204 | - android:text="@string/cos_analysis2" | ||
205 | - android:textColor="@color/cos_light_black" | ||
206 | - android:textSize="21sp" /> | ||
207 | - | ||
208 | - | ||
209 | - <LinearLayout | ||
210 | - android:layout_width="match_parent" | ||
211 | - android:layout_height="wrap_content" | ||
212 | - android:layout_below="@+id/tv_shared_title" | ||
213 | - android:layout_marginTop="24dp" | ||
214 | - android:orientation="vertical"> | ||
215 | - | ||
216 | - <androidx.recyclerview.widget.RecyclerView | ||
217 | - android:id="@+id/rv_shared_coupons" | ||
218 | - android:layout_width="match_parent" | ||
219 | - android:layout_height="wrap_content" | ||
220 | - android:orientation="vertical" | ||
221 | - android:overScrollMode="never" /> | ||
222 | - | ||
223 | - <LinearLayout | ||
224 | - android:id="@+id/ll_show_more_shared" | ||
225 | android:layout_width="wrap_content" | 281 | android:layout_width="wrap_content" |
226 | android:layout_height="wrap_content" | 282 | android:layout_height="wrap_content" |
227 | - android:layout_gravity="center" | 283 | + android:layout_below="@+id/tv_shared_title" |
228 | - android:gravity="center" | 284 | + android:layout_centerHorizontal="true" |
229 | - android:orientation="horizontal" | 285 | + android:layout_marginTop="56dp" |
230 | - android:paddingBottom="8dp" | 286 | + android:text="@string/cos_empty_shared_coupons" |
231 | - android:visibility="gone" | 287 | + android:textColor="@color/cos_light_black" |
232 | - tools:visibility="visible"> | 288 | + android:textSize="16sp" |
233 | - | 289 | + android:visibility="gone" /> |
234 | - <TextView | 290 | + </RelativeLayout> |
235 | - android:id="@+id/tv_shared_more" | 291 | + </androidx.cardview.widget.CardView> |
236 | - fontPath="fonts/PeridotPE-Bold.ttf" | ||
237 | - android:layout_width="wrap_content" | ||
238 | - android:layout_height="wrap_content" | ||
239 | - android:text="@string/cos_see_more" | ||
240 | - android:textColor="@color/cos_light_black" | ||
241 | - android:textSize="16sp" /> | ||
242 | - | ||
243 | - <ImageView | ||
244 | - android:id="@+id/iv_shared_more_arrow" | ||
245 | - android:layout_width="14dp" | ||
246 | - android:layout_height="14dp" | ||
247 | - android:layout_marginStart="6dp" | ||
248 | - android:layout_marginTop="3dp" | ||
249 | - android:src="@drawable/ic_down_dark_new" /> | ||
250 | - </LinearLayout> | ||
251 | - </LinearLayout> | ||
252 | - | ||
253 | - <TextView | ||
254 | - android:id="@+id/tv_shared_empty" | ||
255 | - fontPath="fonts/PeridotPE-Regular.ttf" | ||
256 | - android:layout_width="wrap_content" | ||
257 | - android:layout_height="wrap_content" | ||
258 | - android:layout_below="@+id/tv_shared_title" | ||
259 | - android:layout_centerHorizontal="true" | ||
260 | - android:layout_marginTop="56dp" | ||
261 | - android:text="@string/cos_empty_shared_coupons" | ||
262 | - android:textColor="@color/cos_light_black" | ||
263 | - android:textSize="16sp" | ||
264 | - android:visibility="gone" /> | ||
265 | - </RelativeLayout> | ||
266 | </RelativeLayout> | 292 | </RelativeLayout> |
267 | </androidx.core.widget.NestedScrollView> | 293 | </androidx.core.widget.NestedScrollView> |
268 | </RelativeLayout> | 294 | </RelativeLayout> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -62,11 +62,14 @@ | ... | @@ -62,11 +62,14 @@ |
62 | android:id="@+id/iv_profile_photo" | 62 | android:id="@+id/iv_profile_photo" |
63 | android:layout_width="70dp" | 63 | android:layout_width="70dp" |
64 | android:layout_height="70dp" | 64 | android:layout_height="70dp" |
65 | + android:padding="1dp" | ||
65 | android:src="@drawable/ic_default_photo" | 66 | android:src="@drawable/ic_default_photo" |
66 | app:layout_constraintBottom_toBottomOf="parent" | 67 | app:layout_constraintBottom_toBottomOf="parent" |
67 | app:layout_constraintLeft_toLeftOf="parent" | 68 | app:layout_constraintLeft_toLeftOf="parent" |
68 | app:layout_constraintTop_toTopOf="parent" | 69 | app:layout_constraintTop_toTopOf="parent" |
69 | app:shapeAppearanceOverlay="@style/ShapeAppearanceProfileImage" | 70 | app:shapeAppearanceOverlay="@style/ShapeAppearanceProfileImage" |
71 | + app:strokeColor="@color/cos_grey2" | ||
72 | + app:strokeWidth="1dp" | ||
70 | tools:background="@color/cos_cyan3" /> | 73 | tools:background="@color/cos_cyan3" /> |
71 | 74 | ||
72 | <TextView | 75 | <TextView |
... | @@ -195,10 +198,10 @@ | ... | @@ -195,10 +198,10 @@ |
195 | android:layout_width="14dp" | 198 | android:layout_width="14dp" |
196 | android:layout_height="14dp" | 199 | android:layout_height="14dp" |
197 | android:src="@drawable/ic_down_dark_new" | 200 | android:src="@drawable/ic_down_dark_new" |
201 | + android:visibility="gone" | ||
198 | app:layout_constraintBottom_toBottomOf="parent" | 202 | app:layout_constraintBottom_toBottomOf="parent" |
199 | app:layout_constraintEnd_toEndOf="parent" | 203 | app:layout_constraintEnd_toEndOf="parent" |
200 | - app:layout_constraintTop_toTopOf="parent" | 204 | + app:layout_constraintTop_toTopOf="parent" /> |
201 | - android:visibility="gone"/> | ||
202 | </androidx.constraintlayout.widget.ConstraintLayout> | 205 | </androidx.constraintlayout.widget.ConstraintLayout> |
203 | 206 | ||
204 | <net.cachapa.expandablelayout.ExpandableLayout | 207 | <net.cachapa.expandablelayout.ExpandableLayout |
... | @@ -429,84 +432,95 @@ | ... | @@ -429,84 +432,95 @@ |
429 | android:layout_marginHorizontal="16dp" | 432 | android:layout_marginHorizontal="16dp" |
430 | android:src="@drawable/ic_deals_horizontal" /> | 433 | android:src="@drawable/ic_deals_horizontal" /> |
431 | 434 | ||
432 | - <androidx.constraintlayout.widget.ConstraintLayout | 435 | + <androidx.cardview.widget.CardView |
433 | - android:id="@+id/cl_mygifts" | ||
434 | android:layout_width="match_parent" | 436 | android:layout_width="match_parent" |
435 | android:layout_height="wrap_content" | 437 | android:layout_height="wrap_content" |
436 | - android:layout_marginHorizontal="8dp" | 438 | + android:layout_marginHorizontal="11dp" |
437 | android:layout_marginTop="8dp" | 439 | android:layout_marginTop="8dp" |
438 | - android:background="@drawable/shape_cos_white_border" | 440 | + android:layout_marginBottom="6dp" |
439 | - android:paddingVertical="10dp"> | 441 | + android:paddingVertical="10dp" |
442 | + app:cardCornerRadius="16dp" | ||
443 | + app:cardElevation="2dp"> | ||
440 | 444 | ||
441 | - <LinearLayout | 445 | + <androidx.constraintlayout.widget.ConstraintLayout |
442 | - android:layout_width="0dp" | 446 | + android:id="@+id/cl_mygifts" |
447 | + android:layout_width="match_parent" | ||
443 | android:layout_height="wrap_content" | 448 | android:layout_height="wrap_content" |
444 | - android:layout_marginHorizontal="24dp" | 449 | + android:layout_marginHorizontal="8dp" |
445 | - android:orientation="vertical" | 450 | + android:layout_marginTop="8dp" |
446 | - app:layout_constraintBottom_toBottomOf="parent" | 451 | + android:background="@color/white" |
447 | - app:layout_constraintEnd_toStartOf="@+id/iv_deals_circle" | 452 | + android:paddingVertical="10dp"> |
448 | - app:layout_constraintStart_toStartOf="parent" | ||
449 | - app:layout_constraintTop_toTopOf="parent"> | ||
450 | 453 | ||
451 | - <TextView | 454 | + <LinearLayout |
452 | - android:id="@+id/tv_active_gifts" | 455 | + android:layout_width="0dp" |
453 | - fontPath="fonts/PeridotPE-Regular.ttf" | ||
454 | - android:layout_width="wrap_content" | ||
455 | android:layout_height="wrap_content" | 456 | android:layout_height="wrap_content" |
456 | - android:textColor="@color/cos_light_black" | 457 | + android:layout_marginHorizontal="24dp" |
457 | - android:textSize="18sp" | 458 | + android:orientation="vertical" |
458 | - tools:text="@string/cos_active_deals" /> | 459 | + app:layout_constraintBottom_toBottomOf="parent" |
460 | + app:layout_constraintEnd_toStartOf="@+id/iv_deals_circle" | ||
461 | + app:layout_constraintStart_toStartOf="parent" | ||
462 | + app:layout_constraintTop_toTopOf="parent"> | ||
459 | 463 | ||
460 | - <TextView | 464 | + <TextView |
461 | - android:id="@+id/tv_active_deals_text" | 465 | + android:id="@+id/tv_active_gifts" |
462 | - fontPath="fonts/PeridotPE-Bold.ttf" | 466 | + fontPath="fonts/PeridotPE-Regular.ttf" |
463 | - android:layout_width="wrap_content" | 467 | + android:layout_width="wrap_content" |
464 | - android:layout_height="wrap_content" | 468 | + android:layout_height="wrap_content" |
465 | - android:ellipsize="end" | 469 | + android:textColor="@color/cos_light_black" |
466 | - android:maxLines="2" | 470 | + android:textSize="18sp" |
467 | - android:textColor="@color/cos_light_black" | 471 | + tools:text="@string/cos_active_deals" /> |
468 | - android:textIsSelectable="true" | 472 | + |
469 | - android:textSize="18sp" | 473 | + <TextView |
470 | - tools:text="961544809" | 474 | + android:id="@+id/tv_active_deals_text" |
471 | - tools:visibility="gone" /> | 475 | + fontPath="fonts/PeridotPE-Bold.ttf" |
472 | - | 476 | + android:layout_width="wrap_content" |
473 | - <ScrollView | ||
474 | - android:id="@+id/sv_active_deals_codes_view" | ||
475 | - android:layout_width="match_parent" | ||
476 | - android:layout_height="48dp" | ||
477 | - android:nestedScrollingEnabled="true" | ||
478 | - android:visibility="gone"> | ||
479 | - | ||
480 | - <org.apmem.tools.layouts.FlowLayout | ||
481 | - android:id="@+id/ll_active_deals_codes_view" | ||
482 | - android:layout_width="match_parent" | ||
483 | android:layout_height="wrap_content" | 477 | android:layout_height="wrap_content" |
478 | + android:ellipsize="end" | ||
479 | + android:maxLines="2" | ||
480 | + android:textColor="@color/cos_light_black" | ||
481 | + android:textIsSelectable="true" | ||
482 | + android:textSize="18sp" | ||
483 | + tools:text="961544809" | ||
484 | + tools:visibility="gone" /> | ||
485 | + | ||
486 | + <ScrollView | ||
487 | + android:id="@+id/sv_active_deals_codes_view" | ||
488 | + android:layout_width="match_parent" | ||
489 | + android:layout_height="48dp" | ||
490 | + android:nestedScrollingEnabled="true" | ||
484 | android:visibility="gone"> | 491 | android:visibility="gone"> |
485 | 492 | ||
486 | - </org.apmem.tools.layouts.FlowLayout> | 493 | + <org.apmem.tools.layouts.FlowLayout |
487 | - </ScrollView> | 494 | + android:id="@+id/ll_active_deals_codes_view" |
495 | + android:layout_width="match_parent" | ||
496 | + android:layout_height="wrap_content" | ||
497 | + android:visibility="gone"> | ||
488 | 498 | ||
489 | - <TextView | 499 | + </org.apmem.tools.layouts.FlowLayout> |
490 | - android:id="@+id/tv_active_deals_date_text" | 500 | + </ScrollView> |
491 | - fontPath="fonts/PeridotPE-Regular.ttf" | ||
492 | - android:layout_width="wrap_content" | ||
493 | - android:layout_height="wrap_content" | ||
494 | - android:textColor="@color/cos_light_black" | ||
495 | - android:visibility="gone" | ||
496 | - tools:text="@string/cos_active_coupon_date" /> | ||
497 | - </LinearLayout> | ||
498 | 501 | ||
499 | - <ImageView | 502 | + <TextView |
500 | - android:id="@+id/iv_deals_circle" | 503 | + android:id="@+id/tv_active_deals_date_text" |
501 | - android:layout_width="86dp" | 504 | + fontPath="fonts/PeridotPE-Regular.ttf" |
502 | - android:layout_height="86dp" | 505 | + android:layout_width="wrap_content" |
503 | - android:layout_marginVertical="4dp" | 506 | + android:layout_height="wrap_content" |
504 | - android:layout_marginEnd="32dp" | 507 | + android:textColor="@color/cos_light_black" |
505 | - android:src="@drawable/ic_deals_new" | 508 | + android:visibility="gone" |
506 | - app:layout_constraintBottom_toBottomOf="parent" | 509 | + tools:text="@string/cos_active_coupon_date" /> |
507 | - app:layout_constraintEnd_toEndOf="parent" | 510 | + </LinearLayout> |
508 | - app:layout_constraintTop_toTopOf="parent" /> | 511 | + |
509 | - </androidx.constraintlayout.widget.ConstraintLayout> | 512 | + <ImageView |
513 | + android:id="@+id/iv_deals_circle" | ||
514 | + android:layout_width="86dp" | ||
515 | + android:layout_height="86dp" | ||
516 | + android:layout_marginVertical="4dp" | ||
517 | + android:layout_marginEnd="32dp" | ||
518 | + android:src="@drawable/ic_deals_new" | ||
519 | + app:layout_constraintBottom_toBottomOf="parent" | ||
520 | + app:layout_constraintEnd_toEndOf="parent" | ||
521 | + app:layout_constraintTop_toTopOf="parent" /> | ||
522 | + </androidx.constraintlayout.widget.ConstraintLayout> | ||
523 | + </androidx.cardview.widget.CardView> | ||
510 | </LinearLayout> | 524 | </LinearLayout> |
511 | 525 | ||
512 | <LinearLayout | 526 | <LinearLayout | ... | ... |
... | @@ -16,8 +16,8 @@ | ... | @@ -16,8 +16,8 @@ |
16 | android:layout_width="48dp" | 16 | android:layout_width="48dp" |
17 | android:layout_height="48dp" | 17 | android:layout_height="48dp" |
18 | android:layout_marginStart="16dp" | 18 | android:layout_marginStart="16dp" |
19 | - android:src="@drawable/ic_close" | ||
20 | android:scaleType="centerInside" | 19 | android:scaleType="centerInside" |
20 | + android:src="@drawable/ic_close" | ||
21 | app:layout_constraintBottom_toBottomOf="parent" | 21 | app:layout_constraintBottom_toBottomOf="parent" |
22 | app:layout_constraintStart_toStartOf="parent" | 22 | app:layout_constraintStart_toStartOf="parent" |
23 | app:layout_constraintTop_toTopOf="parent" /> | 23 | app:layout_constraintTop_toTopOf="parent" /> |
... | @@ -41,15 +41,15 @@ | ... | @@ -41,15 +41,15 @@ |
41 | android:layout_height="match_parent" | 41 | android:layout_height="match_parent" |
42 | android:layout_below="@+id/cl_loyalty_wallet_header" | 42 | android:layout_below="@+id/cl_loyalty_wallet_header" |
43 | android:background="@color/white" | 43 | android:background="@color/white" |
44 | - android:scrollbars="none" | 44 | + android:fillViewport="true" |
45 | - android:fillViewport="true"> | 45 | + android:scrollbars="none"> |
46 | 46 | ||
47 | <androidx.constraintlayout.widget.ConstraintLayout | 47 | <androidx.constraintlayout.widget.ConstraintLayout |
48 | android:layout_width="match_parent" | 48 | android:layout_width="match_parent" |
49 | android:layout_height="match_parent" | 49 | android:layout_height="match_parent" |
50 | android:background="@color/white"> | 50 | android:background="@color/white"> |
51 | 51 | ||
52 | -<!-- android:background="@drawable/shape_cos_loyalty_white"--> | 52 | + <!-- android:background="@drawable/shape_cos_loyalty_white"--> |
53 | <RelativeLayout | 53 | <RelativeLayout |
54 | android:id="@+id/cl_loyalty_info_view_inner" | 54 | android:id="@+id/cl_loyalty_info_view_inner" |
55 | android:layout_width="match_parent" | 55 | android:layout_width="match_parent" |
... | @@ -63,7 +63,7 @@ | ... | @@ -63,7 +63,7 @@ |
63 | <ImageView | 63 | <ImageView |
64 | android:id="@+id/imageView6" | 64 | android:id="@+id/imageView6" |
65 | android:layout_width="match_parent" | 65 | android:layout_width="match_parent" |
66 | - android:layout_height="295dp" | 66 | + android:layout_height="255dp" |
67 | android:layout_centerHorizontal="true" | 67 | android:layout_centerHorizontal="true" |
68 | android:scaleType="centerCrop" | 68 | android:scaleType="centerCrop" |
69 | tools:src="@drawable/carousel_banner" /> | 69 | tools:src="@drawable/carousel_banner" /> |
... | @@ -200,8 +200,8 @@ | ... | @@ -200,8 +200,8 @@ |
200 | android:id="@+id/iv_see_more_arrow" | 200 | android:id="@+id/iv_see_more_arrow" |
201 | android:layout_width="14dp" | 201 | android:layout_width="14dp" |
202 | android:layout_height="14dp" | 202 | android:layout_height="14dp" |
203 | - android:layout_marginTop="3dp" | ||
204 | android:layout_marginStart="6dp" | 203 | android:layout_marginStart="6dp" |
204 | + android:layout_marginTop="3dp" | ||
205 | android:src="@drawable/ic_down_dark_new" /> | 205 | android:src="@drawable/ic_down_dark_new" /> |
206 | </LinearLayout> | 206 | </LinearLayout> |
207 | 207 | ||
... | @@ -213,11 +213,11 @@ | ... | @@ -213,11 +213,11 @@ |
213 | android:layout_below="@+id/ll_see_more" | 213 | android:layout_below="@+id/ll_see_more" |
214 | android:layout_marginHorizontal="32dp" | 214 | android:layout_marginHorizontal="32dp" |
215 | android:layout_marginTop="16dp" | 215 | android:layout_marginTop="16dp" |
216 | - android:textColor="@color/cos_gray" | 216 | + android:textColor="@color/cos_light_black" |
217 | android:textSize="16sp" | 217 | android:textSize="16sp" |
218 | android:visibility="gone" | 218 | android:visibility="gone" |
219 | - tools:visibility="visible" | 219 | + tools:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. " |
220 | - tools:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. " /> | 220 | + tools:visibility="visible" /> |
221 | </RelativeLayout> | 221 | </RelativeLayout> |
222 | 222 | ||
223 | </RelativeLayout> | 223 | </RelativeLayout> | ... | ... |
... | @@ -10,13 +10,13 @@ | ... | @@ -10,13 +10,13 @@ |
10 | android:layout_width="match_parent" | 10 | android:layout_width="match_parent" |
11 | android:layout_height="match_parent" | 11 | android:layout_height="match_parent" |
12 | android:layout_marginHorizontal="16dp" | 12 | android:layout_marginHorizontal="16dp" |
13 | - app:cardElevation="0dp" | 13 | + android:layout_marginBottom="2dp" |
14 | - app:cardCornerRadius="16dp"> | 14 | + app:cardCornerRadius="16dp" |
15 | + app:cardElevation="2dp"> | ||
15 | 16 | ||
16 | <androidx.constraintlayout.widget.ConstraintLayout | 17 | <androidx.constraintlayout.widget.ConstraintLayout |
17 | android:layout_width="match_parent" | 18 | android:layout_width="match_parent" |
18 | - android:layout_height="match_parent" | 19 | + android:layout_height="match_parent"> |
19 | - android:background="@drawable/selector_cos_campaign"> | ||
20 | 20 | ||
21 | <androidx.constraintlayout.widget.Guideline | 21 | <androidx.constraintlayout.widget.Guideline |
22 | android:id="@+id/gl_vertical_60_percent" | 22 | android:id="@+id/gl_vertical_60_percent" |
... | @@ -38,13 +38,13 @@ | ... | @@ -38,13 +38,13 @@ |
38 | 38 | ||
39 | <TextView | 39 | <TextView |
40 | android:id="@+id/tv_campaign_title" | 40 | android:id="@+id/tv_campaign_title" |
41 | + fontPath="fonts/PeridotPE-Regular.ttf" | ||
41 | android:layout_width="0dp" | 42 | android:layout_width="0dp" |
42 | android:layout_height="wrap_content" | 43 | android:layout_height="wrap_content" |
43 | android:layout_marginHorizontal="12dp" | 44 | android:layout_marginHorizontal="12dp" |
44 | android:gravity="center" | 45 | android:gravity="center" |
45 | android:maxLines="4" | 46 | android:maxLines="4" |
46 | android:textColor="@color/cos_light_black" | 47 | android:textColor="@color/cos_light_black" |
47 | - fontPath="fonts/PeridotPE-Regular.ttf" | ||
48 | app:layout_constraintBottom_toBottomOf="parent" | 48 | app:layout_constraintBottom_toBottomOf="parent" |
49 | app:layout_constraintLeft_toRightOf="@+id/gl_vertical_60_percent" | 49 | app:layout_constraintLeft_toRightOf="@+id/gl_vertical_60_percent" |
50 | app:layout_constraintRight_toRightOf="parent" | 50 | app:layout_constraintRight_toRightOf="parent" |
... | @@ -62,7 +62,7 @@ | ... | @@ -62,7 +62,7 @@ |
62 | android:layout_marginEnd="10dp" | 62 | android:layout_marginEnd="10dp" |
63 | android:scaleType="centerCrop" | 63 | android:scaleType="centerCrop" |
64 | android:src="@drawable/ic_new_icon" | 64 | android:src="@drawable/ic_new_icon" |
65 | - android:translationZ="2dp" | 65 | + android:translationZ="5dp" |
66 | android:visibility="gone" | 66 | android:visibility="gone" |
67 | app:layout_constraintEnd_toEndOf="parent" | 67 | app:layout_constraintEnd_toEndOf="parent" |
68 | app:layout_constraintTop_toTopOf="parent" | 68 | app:layout_constraintTop_toTopOf="parent" | ... | ... |
-
Please register or login to post a comment