From d33ff33dabb5819e26699992aed8f8a15ba35e70 Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Fri, 24 May 2024 12:30:46 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[feat]=20#36=20=EB=B9=A0=EB=A5=B8=20?= =?UTF-8?q?=EB=B0=B0=EC=86=A1=20=EC=B9=A9=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RecommendJustDroppedViewHolder.kt | 6 ++-- app/src/main/res/drawable/ic_fd_10.xml | 12 +++++++ .../item_recommend_just_dropped_product.xml | 4 +-- .../main/res/layout/view_fast_delivery.xml | 10 +++--- .../layout/view_recommend_fast_delivery.xml | 34 +++++++++++++++++++ 5 files changed, 56 insertions(+), 10 deletions(-) create mode 100644 app/src/main/res/drawable/ic_fd_10.xml create mode 100644 app/src/main/res/layout/view_recommend_fast_delivery.xml diff --git a/app/src/main/java/org/sopt/kream/presentation/ui/main/home/recommend/RecommendJustDroppedViewHolder.kt b/app/src/main/java/org/sopt/kream/presentation/ui/main/home/recommend/RecommendJustDroppedViewHolder.kt index de5ff5c..30b9da8 100644 --- a/app/src/main/java/org/sopt/kream/presentation/ui/main/home/recommend/RecommendJustDroppedViewHolder.kt +++ b/app/src/main/java/org/sopt/kream/presentation/ui/main/home/recommend/RecommendJustDroppedViewHolder.kt @@ -24,11 +24,11 @@ class RecommendJustDroppedViewHolder( tvJustDroppedProductPrice.text = recommendJustDroppedProductModel.price tvJustDroppedProductTransaction.text = recommendJustDroppedProductModel.transactionCount ivJustDroppedProductScrap.setImageResource(if (recommendJustDroppedProductModel.isScrap) R.drawable.ic_saved_2_on_24 else R.drawable.ic_saved_2_off_24) - includeJustDroppedProductFastDelivery.tvFastDelivery.visibility = if (recommendJustDroppedProductModel.isFreeDeliver) View.VISIBLE else View.GONE - includeJustDroppedProductFastDelivery.ivFastDelivery.visibility = if (recommendJustDroppedProductModel.isFreeDeliver) View.VISIBLE else View.GONE + includeJustDroppedProductFastDelivery.tvRecommendFastDelivery.visibility = if (recommendJustDroppedProductModel.isFreeDeliver) View.VISIBLE else View.GONE + includeJustDroppedProductFastDelivery.ivRecommendFastDelivery.visibility = if (recommendJustDroppedProductModel.isFreeDeliver) View.VISIBLE else View.GONE tvJustDroppedProductCoupon.visibility = if (recommendJustDroppedProductModel.isCoupon) View.VISIBLE else View.GONE tvJustDroppedProductSave.visibility = if (recommendJustDroppedProductModel.isSave) View.VISIBLE else View.GONE - tvJustDroppedProductFreeDeliver.visibility = if (recommendJustDroppedProductModel.isFreeDeliver) View.VISIBLE else View.GONE + tvJustDroppedProductFreeDeliver.visibility = if (recommendJustDroppedProductModel.isFreeDeliver) View.VISIBLE else View.INVISIBLE root.setOnClickListener { navigateToProductDetail(position) } diff --git a/app/src/main/res/drawable/ic_fd_10.xml b/app/src/main/res/drawable/ic_fd_10.xml new file mode 100644 index 0000000..350906a --- /dev/null +++ b/app/src/main/res/drawable/ic_fd_10.xml @@ -0,0 +1,12 @@ + + + + diff --git a/app/src/main/res/layout/item_recommend_just_dropped_product.xml b/app/src/main/res/layout/item_recommend_just_dropped_product.xml index 1806d8c..4ebd999 100644 --- a/app/src/main/res/layout/item_recommend_just_dropped_product.xml +++ b/app/src/main/res/layout/item_recommend_just_dropped_product.xml @@ -78,7 +78,7 @@ + app:layout_constraintStart_toEndOf="@+id/iv_recommend_fast_delivery" + app:layout_constraintTop_toTopOf="@+id/iv_recommend_fast_delivery" /> \ No newline at end of file diff --git a/app/src/main/res/layout/view_recommend_fast_delivery.xml b/app/src/main/res/layout/view_recommend_fast_delivery.xml new file mode 100644 index 0000000..a652f75 --- /dev/null +++ b/app/src/main/res/layout/view_recommend_fast_delivery.xml @@ -0,0 +1,34 @@ + + + + + + + + \ No newline at end of file From b3aa163461fb9c2bc77d4a84b52b3b1eb5bbc145 Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Fri, 24 May 2024 13:45:01 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[mod]=20#36=20=EB=A7=88=EC=A7=84=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/res/layout/view_recommend_fast_delivery.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/layout/view_recommend_fast_delivery.xml b/app/src/main/res/layout/view_recommend_fast_delivery.xml index a652f75..704ebfe 100644 --- a/app/src/main/res/layout/view_recommend_fast_delivery.xml +++ b/app/src/main/res/layout/view_recommend_fast_delivery.xml @@ -10,7 +10,7 @@ android:id="@+id/iv_recommend_fast_delivery" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginVertical="2dp" + android:layout_marginStart="2dp" android:src="@drawable/ic_fd_10" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent"