| java.lang.Object | ||
| ↳ | android.view.animation.Animation | |
| ↳ | android.view.animation.AlphaAnimation | |
An animation that controls the alpha level of an object. Useful for fading things in and out. This animation ends up changing the alpha property of a Transformation
|
[Expand]
Inherited XML Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.view.animation.Animation
| |||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.view.animation.Animation
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructor used when an AlphaAnimation is loaded from a resource.
| |||||||||||
Constructor to use when building an AlphaAnimation from code
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Indicates whether or not this animation will affect the bounds of the animated view. | |||||||||||
Indicates whether or not this animation will affect the transformation matrix. | |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Changes the alpha property of the supplied Transformation
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class android.view.animation.Animation
| |||||||||||
From class java.lang.Object
| |||||||||||
Constructor used when an AlphaAnimation is loaded from a resource.
| context | Application context to use |
|---|---|
| attrs | Attribute set from which to read values |
Constructor to use when building an AlphaAnimation from code
| fromAlpha | Starting alpha value for the animation, where 1.0 means fully opaque and 0.0 means fully transparent. |
|---|---|
| toAlpha | Ending alpha value for the animation. |
Indicates whether or not this animation will affect the bounds of the animated view. For instance, a fade animation will not affect the bounds whereas a 200% scale animation will.
Indicates whether or not this animation will affect the transformation matrix. For instance, a fade animation will not affect the matrix whereas a scale animation will.
Changes the alpha property of the supplied Transformation
| interpolatedTime | The value of the normalized time (0.0 to 1.0) after it has been run through the interpolation function. |
|---|---|
| t | The Transofrmation object to fill in with the current transforms. |