From bbb9ddcc3eabfa46785cd9253698cdb993f0feca Mon Sep 17 00:00:00 2001 From: BENDENG1 <76191161+BENDENG1@users.noreply.github.com> Date: Sun, 10 Dec 2023 22:07:41 +0900 Subject: [PATCH] =?UTF-8?q?#86=20fix=20:=20=EC=B6=94=EC=B2=9C=20=EC=9D=8C?= =?UTF-8?q?=EC=8B=9D=EC=A0=90=20=EC=97=86=EC=9D=84=EB=95=8C=20=EC=97=86?= =?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EA=B5=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: plashdof Co-authored-by: yy0ung --- .../customview/RecommendRestaurantDialog.kt | 7 ++++++- .../res/layout/dialog_recommend_restaurant.xml | 15 +++++++++++++-- Aos/app/src/main/res/values/strings.xml | 1 + 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Aos/app/src/main/java/com/avengers/nibobnebob/presentation/customview/RecommendRestaurantDialog.kt b/Aos/app/src/main/java/com/avengers/nibobnebob/presentation/customview/RecommendRestaurantDialog.kt index ecd8998f..1ce128fa 100644 --- a/Aos/app/src/main/java/com/avengers/nibobnebob/presentation/customview/RecommendRestaurantDialog.kt +++ b/Aos/app/src/main/java/com/avengers/nibobnebob/presentation/customview/RecommendRestaurantDialog.kt @@ -5,6 +5,7 @@ import android.content.Context import android.graphics.Color import android.graphics.drawable.ColorDrawable import android.os.Bundle +import android.view.View import com.avengers.nibobnebob.databinding.DialogRecommendRestaurantBinding import com.avengers.nibobnebob.presentation.ui.main.home.adapter.HomeRecommendAdapter import com.avengers.nibobnebob.presentation.ui.main.home.model.UiRecommendRestaurantData @@ -13,7 +14,6 @@ class RecommendRestaurantDialog( context: Context, private val uiRecommendRestaurantDataList: List, private val restaurantClickListener: (Int) -> Unit - ) : Dialog(context) { private lateinit var binding: DialogRecommendRestaurantBinding @@ -35,6 +35,11 @@ class RecommendRestaurantDialog( rvRecommendRestaurant.adapter = adapter adapter.submitList(uiRecommendRestaurantDataList) + if(uiRecommendRestaurantDataList.isEmpty()){ + binding.tvIsEmpty.visibility = View.VISIBLE + } + + binding.tvCancel.setOnClickListener { dismiss() } diff --git a/Aos/app/src/main/res/layout/dialog_recommend_restaurant.xml b/Aos/app/src/main/res/layout/dialog_recommend_restaurant.xml index 79307862..2d54ce51 100644 --- a/Aos/app/src/main/res/layout/dialog_recommend_restaurant.xml +++ b/Aos/app/src/main/res/layout/dialog_recommend_restaurant.xml @@ -23,6 +23,18 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> + + ]]> 아직 추가한 맛집이 없습니다. 전화번호 없음 + \n\n추천드릴 음식점이 존재하지 않습니다.\n\n 강남구