Create animations in Android Studio | Android Text Animation | Android image animation

Опубликовано: 07 Октябрь 2024
на канале: My app dev
254
3

Create animations in Android Studio | Android Text Animation | Android image animation #android
github : https://github.com/tarikul1988/ImageA...

To get started with this tutorial from scratch you can create an empty android studio activity else you can skip this step and proceed further if you are already working on some Android Studio project and want to learn about Android ImageView animation.

Transparency Effect (Alpha)

To get the transparency effect in your android ImageView, we play with alpha values of our ImageView.

First set the alpha value of your ImageView to zero and then animate the alpha value to 1.0f to get complete 100% opacity.

translationX vs translationXBy

While coding you may have noticed that there are two different properties of translation for both X and Y i.e., translationX vs translationXBy.

translationX is used to animate the Android imageView to that particular point on the activity where as translationXBy animates the Android imageView by the amount mentioned.