WhaleUtils
androidJvm
common
/
com.bluewhaleyt.common.animation
/
AnimationUtils
Animation
Utils
class
AnimationUtils
(
context
:
Context
)
Members
Constructors
Animation
Utils
Link copied to clipboard
constructor
(
context
:
Context
)
Properties
DURATION_LONG
Link copied to clipboard
val
DURATION_LONG
:
Long
=
600
DURATION_SHORT
Link copied to clipboard
val
DURATION_SHORT
:
Long
=
300
Functions
apply
Animation
Link copied to clipboard
fun
applyAnimation
(
view
:
View
,
@
AnimRes
resId
:
Int
)
fun
applyAnimation
(
view
:
View
,
animation
:
Animations
,
duration
:
Long
=
DURATION_SHORT
,
startDelay
:
Long
=
0
,
vararg
params
:
Float
,
action
:
(
)
->
Unit
=
{}
)
scale
Link copied to clipboard
fun
scale
(
view
:
View
,
duration
:
Long
,
startDelay
:
Long
,
fromX
:
Float
=
1.0f
,
toX
:
Float
=
1.0f
,
fromY
:
Float
=
1.0f
,
toY
:
Float
=
1.0f
,
pivotX
:
Float
=
0.5f
,
pivotY
:
Float
=
0.5f
,
interpolator
:
Interpolator
?
=
null
,
action
:
(
)
->
Unit
)
translate
Link copied to clipboard
fun
translate
(
view
:
View
,
duration
:
Long
,
startDelay
:
Long
,
fromX
:
Float
=
0.0f
,
toX
:
Float
=
0.0f
,
fromY
:
Float
=
0.0f
,
toY
:
Float
=
0.0f
,
action
:
(
)
->
Unit
)