Dice Animation
fun <T : DiceView> DiceAnimation( dice: T, toSide: Int, duration: Int = DEFAULT_ANIMATION_DURATION, speed: Int = DEFAULT_ANIMATION_SPEED)
Content copied to clipboard
Creates a DiceAnimation for the given DiceView.
Parameters
T
Generic DiceView.
dice
DiceView to animate.
duration
Duration in milliseconds. Default: DEFAULT_ANIMATION_DURATION.
speed
Count of steps. Default: DEFAULT_ANIMATION_SPEED.