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 강남구