diff --git a/app/src/main/java/org/android/go/sopt/presentation/main/MainActivity.kt b/app/src/main/java/org/android/go/sopt/presentation/main/MainActivity.kt index 7e79d74..27d1c6a 100644 --- a/app/src/main/java/org/android/go/sopt/presentation/main/MainActivity.kt +++ b/app/src/main/java/org/android/go/sopt/presentation/main/MainActivity.kt @@ -7,6 +7,7 @@ import androidx.fragment.app.replace import dagger.hilt.android.AndroidEntryPoint import org.android.go.sopt.R import org.android.go.sopt.databinding.ActivityMainBinding +import org.android.go.sopt.presentation.main.follower.FollowerFragment import org.android.go.sopt.presentation.main.gallery.GalleryFragment import org.android.go.sopt.presentation.main.home.HomeFragment import org.android.go.sopt.presentation.main.profile.ProfileFragment @@ -30,6 +31,7 @@ class MainActivity : BindingActivity(R.layout.activity_main R.id.menu_home -> navigateTo() R.id.menu_gallery -> navigateTo() R.id.menu_search -> navigateTo() + R.id.menu_follower -> navigateTo() R.id.menu_profile -> navigateTo() } true diff --git a/app/src/main/java/org/android/go/sopt/presentation/main/follower/FollowerFragment.kt b/app/src/main/java/org/android/go/sopt/presentation/main/follower/FollowerFragment.kt new file mode 100644 index 0000000..3fa5066 --- /dev/null +++ b/app/src/main/java/org/android/go/sopt/presentation/main/follower/FollowerFragment.kt @@ -0,0 +1,13 @@ +package org.android.go.sopt.presentation.main.follower + +import org.android.go.sopt.R +import org.android.go.sopt.databinding.FragmentFollowerBinding +import org.android.go.sopt.util.binding.BindingFragment + +class FollowerFragment : BindingFragment(R.layout.fragment_follower) { + + companion object { + @JvmStatic + fun newInstance() = FollowerFragment() + } +} diff --git a/app/src/main/res/drawable/ic_main_follower.xml b/app/src/main/res/drawable/ic_main_follower.xml new file mode 100644 index 0000000..a3ccd71 --- /dev/null +++ b/app/src/main/res/drawable/ic_main_follower.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/layout/fragment_follower.xml b/app/src/main/res/layout/fragment_follower.xml new file mode 100644 index 0000000..6e0ea78 --- /dev/null +++ b/app/src/main/res/layout/fragment_follower.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml index 1cc7666..c032ffa 100644 --- a/app/src/main/res/menu/menu_main.xml +++ b/app/src/main/res/menu/menu_main.xml @@ -12,6 +12,10 @@ android:id="@+id/menu_search" android:icon="@drawable/ic_main_search" android:title="@string/main_search" /> + 갤러리 검색 + 팔로워 프로필 @@ -48,6 +49,9 @@ SEARCH FRAGMENT + + FOLLOWER FRAGMENT + 이름 : %s 특기 : %s