fade Out
fun View.fadeOut(duration: Long = 300, hideOnComplete: Boolean = true, onComplete: () -> Unit? = null)
Fades out the view with animation.
애니메이션과 함께 View를 페이드 아웃합니다.
Parameters
duration
Animation duration in milliseconds (default: 300ms).
애니메이션 지속 시간(밀리초) (기본값: 300ms).
hide On Complete
Whether to set visibility to GONE after animation (default: true).
애니메이션 후 가시성을 GONE으로 설정할지 여부 (기본값: true).
on Complete
Optional callback when animation completes.
애니메이션 완료 시 실행할 선택적 콜백.