| Modifier and Type | Class and Description |
|---|---|
static interface |
Translate.Description.ValueRelativity
Defines an annotation for determining set of supported relativity types for translation
delta value of Translate transition.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
NONE
Constant used to identify that
value should be treated as absolute
(float or dimension) value and not as relative one. |
static int |
RELATIVE_TO_SCENE
Constant used to identify that
value should be treated as relative
fraction to the scene root (its size) where the target view to be animated is presented. |
static int |
RELATIVE_TO_TARGET
Constant used to identify that
value should be treated as relative
fraction to the target view (its size) to be translated. |
float |
value
Value parsed for this description.
|
int |
valueRelativity
Relativity type parsed for this value description.
|
| Modifier and Type | Method and Description |
|---|---|
static Translate.Description |
parseValue(Resources resources,
TypedValue typedValue)
Parses a new Description with translation delta value and value relativity type from the
given typedValue.
|
public static final int NONE
value should be treated as absolute
(float or dimension) value and not as relative one.public static final int RELATIVE_TO_TARGET
value should be treated as relative
fraction to the target view (its size) to be translated.public static final int RELATIVE_TO_SCENE
value should be treated as relative
fraction to the scene root (its size) where the target view to be animated is presented.public final int valueRelativity
@ValueRelativity annotation.parseValue(Resources, TypedValue)public final float value
valueRelativity type.parseValue(Resources, TypedValue)@NonNull public static Translate.Description parseValue(@NonNull Resources resources, @Nullable TypedValue typedValue)
resources - Resources used to properly parse value type of dimension.typedValue - Typed value containing translation delta value to be parsed.