[안드로이드 스튜디오] - fragment에서 View 애니메이션 구현하기
프로젝트 만들다가 opening 화면 애니메이션 구현하고 싶어서 해본 코드들.. // fragment 가 보이기 시작할때 override fun onResume() { super.onResume() // 알파값 조정으로 fade in 구현하기 ObjectAnimator.ofFloat(this.binding.textView, View.ALPHA, 0f,1f).apply { duration = 2000 start() } // 알파값 조정으로 fade out 구현하기 ObjectAnimator.ofFloat(this.binding.textView, View.ALPHA, 1f,0f).apply { duration = 2000 start() } // View 가 회전하면서 돌아오기 ObjectAnimator.of..
2022.04.19