From 5bb8d8237e384da3ebf5bc4679c2b4573824504f Mon Sep 17 00:00:00 2001 From: ss99x2002 Date: Mon, 10 Jul 2023 22:58:39 +0900 Subject: [PATCH] =?UTF-8?q?[Design/#35]=20=EC=A7=88=EB=AC=B8=20=EB=8B=B5?= =?UTF-8?q?=EB=B3=80=ED=95=98=EA=B8=B0=20=EB=B2=84=ED=8A=BC=20=EC=97=B0?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../umbba_android/presentation/home/HomeFragment.kt | 10 ++++++++++ app/src/main/res/layout/fragment_list.xml | 3 ++- app/src/main/res/layout/fragment_setting.xml | 3 ++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/sopt/umbba_android/presentation/home/HomeFragment.kt b/app/src/main/java/com/sopt/umbba_android/presentation/home/HomeFragment.kt index d4c11015..8478cce6 100644 --- a/app/src/main/java/com/sopt/umbba_android/presentation/home/HomeFragment.kt +++ b/app/src/main/java/com/sopt/umbba_android/presentation/home/HomeFragment.kt @@ -1,5 +1,6 @@ package com.sopt.umbba_android.presentation.home +import android.content.Intent import android.os.Bundle import android.view.LayoutInflater import android.view.View @@ -7,14 +8,23 @@ import android.view.ViewGroup import coil.load import com.sopt.umbba_android.R import com.sopt.umbba_android.databinding.FragmentHomeBinding +import com.sopt.umbba_android.presentation.qna.QuestionAnswerActivity import com.sopt.umbba_android.util.binding.BindingFragment class HomeFragment : BindingFragment(R.layout.fragment_home) { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) setBackground() + setClickEvent() } + private fun setClickEvent(){ + with(binding){ + btnAnswer.setOnClickListener { + startActivity(Intent(requireActivity(), QuestionAnswerActivity::class.java)) + } + } + } private fun setBackground(){ with(binding){ ivBackground.load("https://i.ibb.co/sRV9Vr4/iv-maru.jpg") diff --git a/app/src/main/res/layout/fragment_list.xml b/app/src/main/res/layout/fragment_list.xml index 598a72eb..6094e534 100644 --- a/app/src/main/res/layout/fragment_list.xml +++ b/app/src/main/res/layout/fragment_list.xml @@ -10,7 +10,8 @@ + tools:context=".presentation.list.ListFragment" + android:background="@color/umbba_white"> + android:layout_height="match_parent" + android:background="@color/umbba_white">