Build 1.0_r1(from source)

android.view.animation
Class Animation.Description

java.lang.Object
  extended by 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.
 
Constructor Summary
protected Animation.Description()
           
 
Method Summary
(package private) static Animation.Description parseValue(TypedValue value)
          Size descriptions can appear inthree forms: An absolute size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

Animation.Description

protected Animation.Description()
Method Detail

parseValue

static Animation.Description parseValue(TypedValue value)
Size descriptions can appear inthree forms:
  1. An absolute size. This is represented by a number.
  2. A size relative to the size of the object being animated. This is represented by a number followed by "%".
  3. *
  4. 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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature