android.view.animation
Class Animation.Description
java.lang.Object
android.view.animation.Animation.Description
- Enclosing class:
- Animation
protected static class Animation.Description
- extends Object
Utility class to parse a string description of a size.
|
Field Summary |
int |
type
One of Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or
Animation.RELATIVE_TO_PARENT. |
float |
value
The absolute or relative dimension for this Description. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
public int type
- One of Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or
Animation.RELATIVE_TO_PARENT.
value
public float value
- The absolute or relative dimension for this Description.
Animation.Description
protected Animation.Description()
parseValue
static Animation.Description parseValue(TypedValue value)
- Size descriptions can appear inthree forms:
- An absolute size. This is represented by a number.
- A size relative to the size of the object being animated. This
is represented by a number followed by "%".
*
- A size relative to the size of the parent of object being
animated. This is represented by a number followed by "%p".
- Parameters:
value - The typed value to parse
- Returns:
- The parsed version of the description
Please submit a feedback, bug or feature