From 6675bcb50cdade36e8000428a03accc5bde2f7d5 Mon Sep 17 00:00:00 2001 From: ss99x2002 Date: Mon, 10 Jul 2023 01:24:58 +0900 Subject: [PATCH] =?UTF-8?q?[Design/#26]=20BackAnswerDialog=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qna/BackAnswerDialogFragment.kt | 41 ++++++++++++ .../layout/fragment_back_answer_dialog.xml | 63 +++++++++++++++++++ app/src/main/res/values/strings.xml | 17 +++++ 3 files changed, 121 insertions(+) create mode 100644 app/src/main/java/com/sopt/umbba_android/presentation/qna/BackAnswerDialogFragment.kt create mode 100644 app/src/main/res/layout/fragment_back_answer_dialog.xml diff --git a/app/src/main/java/com/sopt/umbba_android/presentation/qna/BackAnswerDialogFragment.kt b/app/src/main/java/com/sopt/umbba_android/presentation/qna/BackAnswerDialogFragment.kt new file mode 100644 index 00000000..2d1de9df --- /dev/null +++ b/app/src/main/java/com/sopt/umbba_android/presentation/qna/BackAnswerDialogFragment.kt @@ -0,0 +1,41 @@ +package com.sopt.umbba_android.presentation.qna + +import android.os.Bundle +import android.view.LayoutInflater +import android.view.View +import android.view.ViewGroup +import android.view.WindowManager +import androidx.fragment.app.DialogFragment +import com.sopt.umbba_android.databinding.FragmentConfirmAnswerDialogBinding + +class BackAnswerDialogFragment : DialogFragment() { + + private var _binding: FragmentConfirmAnswerDialogBinding? = null + private val binding get() = requireNotNull(_binding) { "BackAnswerDialogFragment is null" } + + override fun onCreateView( + inflater: LayoutInflater, container: ViewGroup?, + savedInstanceState: Bundle? + ): View { + _binding = FragmentConfirmAnswerDialogBinding.inflate(inflater, container, false) + return binding.root + } + + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + super.onViewCreated(view, savedInstanceState) + + } + + override fun onResume() { + super.onResume() + dialog?.window?.setLayout( + WindowManager.LayoutParams.MATCH_PARENT, + WindowManager.LayoutParams.WRAP_CONTENT + ) + } + + override fun onDestroy() { + super.onDestroy() + _binding = null + } +} \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_back_answer_dialog.xml b/app/src/main/res/layout/fragment_back_answer_dialog.xml new file mode 100644 index 00000000..a1dcc535 --- /dev/null +++ b/app/src/main/res/layout/fragment_back_answer_dialog.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3df4e492..a3165c7d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -71,4 +71,21 @@ 당신과 어머니의 꿈은 달라? sdlkfjslkdjfklsdjfksdf\nsldkfjsldkjflksdjf 질문 답변하기 + + + 아직 상대가 도착하지 않았어요 + 연결 후 문답을 시작해요 + 초대코드 복사 + 초대장 보내기 + + + 답변을 저장하시겠어요? + 돌아가기 + 저장 + + + 답변 작성을 취소하시겠습니까?\n 작성 중인 답변은 저장되지 않습니다. + 취소 + 확인 + \ No newline at end of file