/**
* Animation can be applied to all views which extends [View]
* Just call the extension function's according to your requirement
* To show animation according to your requirement, call the extension function & pass the animation key
*/
/**
* To show attention animation, call [animationXAttention] & pass the animation key
*/
imageView.animationXAttention(Attention.ATTENTION_BOUNCE)
/**
* To show bounce animation, call [animationXBounce] & pass the animation key
*/
imageView.animationXBounce(Bounce.BOUNCE_IN)
/**
* To show fade animation, call [animationXFade] & pass the animation key
*/
imageView.animationXFade(Fade.FADE_IN_DOWN)
/**
* To show flip animation, call [animationXFlip] & pass the animation key
*/
imageView.animationXFlip(Flip.FLIP_IN_X)
/**
* To show rotate animation, call [animationXRotate] & pass the animation key
*/
imageView.animationXRotate(Rotate.ROTATE_IN)
/**
* To show slide animation, call [animationXSlide] & pass the animation key
*/
imageView.animationXSlide(Slide.SLIDE_IN_DOWN)
/**
* To show zoom animation, call [animationXZoom] & pass the animation key
*/
imageView.animationXZoom(Zoom.ZOOM_IN_DOWN)
/**
* On the other hand, if you want to show animation manually
*/
AnimationX().setDuration(2000)
.setAnimation(Attention.bounce(imageView, AnimationX().getNewAnimatorSet())).start()
Copyright (C) 2020 Romman Sabbir
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.