diff --git a/app/src/main/java/org/ntlab/acanthus_client/views/main_menu_ui/mypage/MyPageFragment.java b/app/src/main/java/org/ntlab/acanthus_client/views/main_menu_ui/mypage/MyPageFragment.java index 3407bf6..7654c96 100644 --- a/app/src/main/java/org/ntlab/acanthus_client/views/main_menu_ui/mypage/MyPageFragment.java +++ b/app/src/main/java/org/ntlab/acanthus_client/views/main_menu_ui/mypage/MyPageFragment.java @@ -1,6 +1,7 @@ package org.ntlab.acanthus_client.views.main_menu_ui.mypage; +import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; @@ -13,6 +14,9 @@ import org.ntlab.acanthus_client.Acanthus; import org.ntlab.acanthus_client.R; import org.ntlab.acanthus_client.databinding.FragmentMypageBinding; +import org.ntlab.acanthus_client.entities.Animation; +import org.ntlab.acanthus_client.views.animation.AnimationActivity; +import org.ntlab.acanthus_client.views.paint.PaintActivity; import androidx.annotation.NonNull; import androidx.annotation.Nullable; @@ -44,7 +48,9 @@ public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); onClickAccept(view); + onClickAnimation(view); } + //----------------------------------------------------------------- // @Override @@ -64,6 +70,16 @@ } //----------------------------------------------------------------- + // + public void onClickAnimation(View view) { + Button button = view.findViewById(org.ntlab.acanthus_client.R.id.buttonAnimation); + + button.setOnClickListener(v -> { + transitionAnimationActivity(); + }); + } + + //----------------------------------------------------------------- //----------------------------------------------------------------- // init private void init() { @@ -108,5 +124,14 @@ } }); } + //----------------------------------------------------------------- + // + private void transitionAnimationActivity() { + Acanthus acanthus = (Acanthus) getActivity().getApplication(); + Intent intent = new Intent(acanthus, AnimationActivity.class); + startActivity(intent); + } + //----------------------------------------------------------------- + } \ No newline at end of file