Showing
1 changed file
with
4 additions
and
0 deletions
| ... | @@ -121,6 +121,7 @@ public class CouponAdapter extends RecyclerView.Adapter<CouponAdapter.CouponView | ... | @@ -121,6 +121,7 @@ public class CouponAdapter extends RecyclerView.Adapter<CouponAdapter.CouponView |
| 121 | private final LinearLayout llDate; | 121 | private final LinearLayout llDate; |
| 122 | private final LinearLayout llDateExpired; | 122 | private final LinearLayout llDateExpired; |
| 123 | private final TextView tvExpiredLabel; | 123 | private final TextView tvExpiredLabel; |
| 124 | + private final LinearLayout llArrow; | ||
| 124 | 125 | ||
| 125 | CouponViewHolder(@NonNull View itemView) { | 126 | CouponViewHolder(@NonNull View itemView) { |
| 126 | super(itemView); | 127 | super(itemView); |
| ... | @@ -132,6 +133,7 @@ public class CouponAdapter extends RecyclerView.Adapter<CouponAdapter.CouponView | ... | @@ -132,6 +133,7 @@ public class CouponAdapter extends RecyclerView.Adapter<CouponAdapter.CouponView |
| 132 | llDate = itemView.findViewById(R.id.ll_date); | 133 | llDate = itemView.findViewById(R.id.ll_date); |
| 133 | llDateExpired = itemView.findViewById(R.id.ll_date_expired); | 134 | llDateExpired = itemView.findViewById(R.id.ll_date_expired); |
| 134 | tvExpiredLabel = itemView.findViewById(R.id.tv_expired_label); | 135 | tvExpiredLabel = itemView.findViewById(R.id.tv_expired_label); |
| 136 | + llArrow = itemView.findViewById(R.id.header_layout); | ||
| 135 | 137 | ||
| 136 | WarpUtils.renderCustomFont(context, R.font.ping_lcg_bold, tvTitle, | 138 | WarpUtils.renderCustomFont(context, R.font.ping_lcg_bold, tvTitle, |
| 137 | tvMerchant, tvEndDate, tvExpiredLabel); | 139 | tvMerchant, tvEndDate, tvExpiredLabel); |
| ... | @@ -155,6 +157,7 @@ public class CouponAdapter extends RecyclerView.Adapter<CouponAdapter.CouponView | ... | @@ -155,6 +157,7 @@ public class CouponAdapter extends RecyclerView.Adapter<CouponAdapter.CouponView |
| 155 | tvMerchant.setTextColor(ContextCompat.getColor(context, R.color.custom_grey9)); | 157 | tvMerchant.setTextColor(ContextCompat.getColor(context, R.color.custom_grey9)); |
| 156 | tvTitle.setTextColor(ContextCompat.getColor(context, R.color.custom_grey9)); | 158 | tvTitle.setTextColor(ContextCompat.getColor(context, R.color.custom_grey9)); |
| 157 | tvDescription.setTextColor(ContextCompat.getColor(context, R.color.custom_grey9)); | 159 | tvDescription.setTextColor(ContextCompat.getColor(context, R.color.custom_grey9)); |
| 160 | + llArrow.setVisibility(View.GONE); | ||
| 158 | llDate.setVisibility(View.GONE); | 161 | llDate.setVisibility(View.GONE); |
| 159 | llDateExpired.setVisibility(View.VISIBLE); | 162 | llDateExpired.setVisibility(View.VISIBLE); |
| 160 | } else { | 163 | } else { |
| ... | @@ -162,6 +165,7 @@ public class CouponAdapter extends RecyclerView.Adapter<CouponAdapter.CouponView | ... | @@ -162,6 +165,7 @@ public class CouponAdapter extends RecyclerView.Adapter<CouponAdapter.CouponView |
| 162 | tvMerchant.setTextColor(ContextCompat.getColor(context, R.color.custom_grey3)); | 165 | tvMerchant.setTextColor(ContextCompat.getColor(context, R.color.custom_grey3)); |
| 163 | tvTitle.setTextColor(ContextCompat.getColor(context, R.color.custom_black6)); | 166 | tvTitle.setTextColor(ContextCompat.getColor(context, R.color.custom_black6)); |
| 164 | tvDescription.setTextColor(ContextCompat.getColor(context, R.color.custom_grey3)); | 167 | tvDescription.setTextColor(ContextCompat.getColor(context, R.color.custom_grey3)); |
| 168 | + llArrow.setVisibility(View.VISIBLE); | ||
| 165 | llDate.setVisibility(View.VISIBLE); | 169 | llDate.setVisibility(View.VISIBLE); |
| 166 | llDateExpired.setVisibility(View.GONE); | 170 | llDateExpired.setVisibility(View.GONE); |
| 167 | } | 171 | } | ... | ... |
-
Please register or login to post a comment