setPress

open fun setPress()(source)

Starts the press animation.

This method calculates the scale ratio based on the target view's size, then initiates a scaling animation to simulate a press effect. If an animation is already running, it will be cancelled and a new press animation will start from the current animated value. The animation uses a predefined press interpolator and duration.