slide Out
fun View.slideOut(direction: SlideDirection, distance: Float = 0.0f, duration: Long = 300, hideOnComplete: Boolean = true, onComplete: () -> Unit? = null)
Animates view sliding out to a specific direction.
특정 방향으로 View가 슬라이드 아웃되는 애니메이션을 실행합니다.
Parameters
direction
Direction to slide to (LEFT, RIGHT, TOP, BOTTOM).
슬라이드할 방향 (LEFT, RIGHT, TOP, BOTTOM).
distance
Distance to slide in pixels (default: view width/height).
슬라이드 거리(픽셀) (기본값: view의 너비/높이).
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.
애니메이션 완료 시 실행할 선택적 콜백.