Skip to content

Commit

Permalink
[feat] : #15 Find Friend Fragment Connect
Browse files Browse the repository at this point in the history
  • Loading branch information
SsongSik committed Jun 13, 2023
1 parent 5b03eaf commit ac88178
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -129,6 +130,11 @@ class FriendFragment : BaseFragment<FragmentFriendBinding>(R.layout.fragment_fri
binding.friendAllIv.setOnClickListener {
getAllFriendRecord()
}

binding.friendAddIv.setOnClickListener {
val action = FriendFragmentDirections.actionFriendFragmentToAddFriendsFragment()
findNavController().navigate(action)
}
}

//친구 목록 조회 RV
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/navigation/pome_navigation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
<action
android:id="@+id/action_friend_fragment_to_friendDetailFragment"
app:destination="@id/friendDetailFragment" />
<action
android:id="@+id/action_friend_fragment_to_addFriendsFragment"
app:destination="@id/addFriendsFragment" />
</fragment>

<fragment
Expand Down

0 comments on commit ac88178

Please sign in to comment.