diff --git a/app/src/main/java/com/teampome/pome/presentation/friend/FriendFragment.kt b/app/src/main/java/com/teampome/pome/presentation/friend/FriendFragment.kt index b9fea4af..c70f632d 100644 --- a/app/src/main/java/com/teampome/pome/presentation/friend/FriendFragment.kt +++ b/app/src/main/java/com/teampome/pome/presentation/friend/FriendFragment.kt @@ -4,6 +4,7 @@ import android.util.Log import android.view.View import android.widget.Toast import androidx.fragment.app.viewModels +import androidx.navigation.fragment.findNavController import androidx.recyclerview.widget.DividerItemDecoration import androidx.recyclerview.widget.LinearLayoutManager import com.google.android.material.bottomsheet.BottomSheetDialog @@ -129,6 +130,11 @@ class FriendFragment : BaseFragment(R.layout.fragment_fri binding.friendAllIv.setOnClickListener { getAllFriendRecord() } + + binding.friendAddIv.setOnClickListener { + val action = FriendFragmentDirections.actionFriendFragmentToAddFriendsFragment() + findNavController().navigate(action) + } } //친구 목록 조회 RV diff --git a/app/src/main/res/navigation/pome_navigation.xml b/app/src/main/res/navigation/pome_navigation.xml index 2993baec..b52e4717 100644 --- a/app/src/main/res/navigation/pome_navigation.xml +++ b/app/src/main/res/navigation/pome_navigation.xml @@ -78,6 +78,9 @@ +