diff --git a/android/app/src/main/java/com/example/sharenote/HomeFragment.kt b/android/app/src/main/java/com/example/sharenote/HomeFragment.kt index dda09a56..2188f020 100644 --- a/android/app/src/main/java/com/example/sharenote/HomeFragment.kt +++ b/android/app/src/main/java/com/example/sharenote/HomeFragment.kt @@ -1,3 +1,4 @@ +import android.animation.ObjectAnimator import android.app.Activity import android.content.ContentValues.TAG import android.content.Intent @@ -49,6 +50,9 @@ class HomeFragment : Fragment() { private lateinit var menuBtn: ImageButton private lateinit var profileForm: RelativeLayout + private lateinit var listLayout: RelativeLayout + private lateinit var listLayout_1: ImageView + private lateinit var MoveDraw: Button private lateinit var emailTextView1: TextView @@ -81,6 +85,9 @@ class HomeFragment : Fragment() { menuBtn = view.findViewById(R.id.menuBtn) profileForm = view.findViewById(R.id.profileForm) + listLayout = view.findViewById(R.id.listLayout) + listLayout_1 = view.findViewById(R.id.listLayout_1) + MoveDraw = view.findViewById(R.id.MoveDraw) @@ -126,15 +133,19 @@ class HomeFragment : Fragment() { showAccountMenuPopup() } - // themesBtn 클릭 시 buttonCreateNote와 recyclerViewNotes의 가시성을 토글합니다. - val themesBtn = view.findViewById(R.id.themesBtn) - themesBtn.setOnClickListener { - togglePagesVisibility(themesBtn) + + listLayout_1.setOnClickListener { + // recyclerViewNotes의 가시성을 토글 + if (recyclerView.visibility == View.VISIBLE) { + animateView(false) + } else { + animateView(true) + } } // Create Note 버튼 클릭 시 NoteActivity로 이동 - val buttonCreatePage = view.findViewById