From d5fb7ef1f6299bb70ecbdd1905de6e0a95d9ab63 Mon Sep 17 00:00:00 2001 From: dkyuuum Date: Tue, 20 Feb 2024 00:57:33 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20=EC=84=A4=EC=A0=95=20=EC=95=84=EC=9D=B4?= =?UTF-8?q?=EB=94=94/=ED=95=99=EA=B3=BC=20ui=20=EC=97=B0=EA=B2=B0=20#1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../umc/com/mobile/project/ui/setting/SettingFragment.kt | 7 +++++-- app/src/main/res/layout/fragment_setting.xml | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/umc/com/mobile/project/ui/setting/SettingFragment.kt b/app/src/main/java/umc/com/mobile/project/ui/setting/SettingFragment.kt index c060293..975860b 100644 --- a/app/src/main/java/umc/com/mobile/project/ui/setting/SettingFragment.kt +++ b/app/src/main/java/umc/com/mobile/project/ui/setting/SettingFragment.kt @@ -4,6 +4,7 @@ import android.app.AlertDialog import android.content.DialogInterface import android.content.Intent import android.os.Bundle +import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup @@ -33,11 +34,13 @@ class SettingFragment : Fragment() { _binding = FragmentSettingBinding.inflate(inflater, container, false) navigateFragment() + viewModel.getUserInfo() // 홈 화면 정보 조회 api viewModel.userInfoResponse.observe(viewLifecycleOwner, Observer { binding.tvAccountIdContent.text = it?.result?.id.toString() - binding.tvAccountMajorContent.text = - "1트랙: ${it?.result?.track1} / 트랙: ${it?.result?.track2}" + Log.d("setting", it?.result?.id.toString()) + + binding.tvAccountMajorContent.text = it?.result?.department }) return binding.root diff --git a/app/src/main/res/layout/fragment_setting.xml b/app/src/main/res/layout/fragment_setting.xml index 87bad31..9af71af 100644 --- a/app/src/main/res/layout/fragment_setting.xml +++ b/app/src/main/res/layout/fragment_setting.xml @@ -100,7 +100,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="16dp" - android:text="@{vm.userInfoResponse.result.track1}" android:textColor="@color/light_gray" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="@+id/tv_account_major" />