animateScale

fun View.animateScale(fromScale: Float = scaleX, toScale: Float, duration: Long = 300, onComplete: () -> Unit? = null)

Animates the view's scale with customizable parameters.

커스터마이징 가능한 매개변수로 View의 스케일을 애니메이션합니다.

Parameters

fromScale

Starting scale value (default: current scale).

시작 스케일 값 (기본값: 현재 스케일).

toScale

Target scale value.

대상 스케일 값.

duration

Animation duration in milliseconds (default: 300ms).

애니메이션 지속 시간(밀리초) (기본값: 300ms).

onComplete

Optional callback when animation completes.

애니메이션 완료 시 실행할 선택적 콜백.