Skip to content

Iamthemax/AnimDemo

Repository files navigation

Simple rotate animation is added to an imageView.

An animation is defined in XML that can performs transitions such as rotating, fading, moving, and stretching on a graphic.

The view animation framework supports both tween and frame by frame animations, which can both be declared in XML.

We can also add same animations to android programatically.

Reference

A rotation animation. Represents a RotateAnimation. attributes:

android:fromDegrees
Float. Starting angular position, in degrees.

android:toDegrees
Float. Ending angular position, in degrees.

android:pivotX
Float or percentage. The X coordinate of the center of rotation. Expressed either: in pixels relative to the object's left edge (such as "5"), in percentage relative to the object's left edge (such as "5%"), or in percentage relative to the parent container's left edge (such as "5%p").

android:pivotY
Float or percentage. The Y coordinate of the center of rotation. Expressed either: in pixels relative to the object's top edge (such as "5"), in percentage relative to the object's top edge (such as "5%"), or in percentage relative to the parent container's top edge (such as "5%p").

https://developer.android.com/guide/topics/resources/animation-resource.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages