diff --git a/app/src/main/java/com/umc/ttoklip/presentation/hometown/MyHometownFragment.kt b/app/src/main/java/com/umc/ttoklip/presentation/hometown/MyHometownFragment.kt index 180942bc..9e458549 100644 --- a/app/src/main/java/com/umc/ttoklip/presentation/hometown/MyHometownFragment.kt +++ b/app/src/main/java/com/umc/ttoklip/presentation/hometown/MyHometownFragment.kt @@ -10,7 +10,6 @@ import com.umc.ttoklip.presentation.hometown.adapter.OnTogetherClickListener import com.umc.ttoklip.presentation.hometown.adapter.Together import com.umc.ttoklip.presentation.hometown.adapter.TogetherAdapter import com.umc.ttoklip.presentation.mypage.MyHometownAddressActivity -import com.umc.ttoklip.presentation.mypage.SortSpinnerAdapter import com.umc.ttoklip.presentation.search.SearchActivity import dagger.hilt.android.AndroidEntryPoint @@ -50,7 +49,7 @@ class MyHometownFragment : BaseFragment(R.layout.frag binding.searchBtn.setOnClickListener { startActivity(SearchActivity.newIntent(requireContext())) } - binding.myHometownFilterSpinner.setOnLongClickListener { + binding.myHometownFilterTv.setOnClickListener { val intent = Intent(requireContext(), MyHometownAddressActivity::class.java) startActivity(intent) true @@ -71,7 +70,6 @@ class MyHometownFragment : BaseFragment(R.layout.frag val intent = Intent(requireContext(), WriteCommunicationActivity::class.java) startActivity(intent) } - initDropdownSortFilter() initTogetherRv() initCommunicationRv() } @@ -104,18 +102,6 @@ class MyHometownFragment : BaseFragment(R.layout.frag togetherAdapter.submitList(togethers) } - private fun initDropdownSortFilter() { - val sortFilters = listOf( - getString(R.string.sort_most_recent), - getString(R.string.sort_popularity), - getString(R.string.sort_most_comments), - getString(R.string.sort_most_scrap) - ) - binding.myHometownFilterSpinner.adapter = - SortSpinnerAdapter(requireContext(), sortFilters) - binding.myHometownFilterSpinner.setSelection(0) - } - override fun onClick(items: Together, type: String) { if (type == getString(R.string.together_title)) { val intent = Intent(requireContext(), ReadTogetherActivity::class.java) diff --git a/app/src/main/res/layout/fragment_my_hometown.xml b/app/src/main/res/layout/fragment_my_hometown.xml index f13764d9..7e7c7aee 100644 --- a/app/src/main/res/layout/fragment_my_hometown.xml +++ b/app/src/main/res/layout/fragment_my_hometown.xml @@ -67,55 +67,21 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> - - - - - - - - - - + app:layout_constraintTop_toTopOf="parent" />