rotate
fun View.rotate(fromDegrees: Float = rotation, toDegrees: Float, duration: Long = 300, onComplete: () -> Unit? = null)
Creates a rotate animation.
회전 애니메이션을 생성합니다.
Parameters
from Degrees
Starting rotation in degrees (default: current rotation).
시작 회전 각도(도) (기본값: 현재 회전).
to Degrees
Target rotation in degrees.
대상 회전 각도(도).
duration
Animation duration in milliseconds (default: 300ms).
애니메이션 지속 시간(밀리초) (기본값: 300ms).
on Complete
Optional callback when animation completes.
애니메이션 완료 시 실행할 선택적 콜백.