Partager via


Dimension Enum

Definition

Enumerates values returned by several types and taken as a parameter of several types.

public enum Dimension
type Dimension = 
Inheritance
Dimension

Fields

Name Value Description
Absolute 0

The specified dimension is an absolute number of pixels.

RelativeToSelf 1

The specified dimension holds a float and should be multiplied by the height or width of the object being animated.

RelativeToParent 2

The specified dimension holds a float and should be multiplied by the height or width of the parent of the object being animated.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to