public class MotionWidget extends java.lang.Object implements TypedValues
| Modifier and Type | Class and Description |
|---|---|
static class |
MotionWidget.Motion |
static class |
MotionWidget.PropertySet |
TypedValues.AttributesType, TypedValues.Custom, TypedValues.CycleType, TypedValues.MotionScene, TypedValues.MotionType, TypedValues.OnSwipe, TypedValues.PositionType, TypedValues.TransitionType, TypedValues.TriggerType| Modifier and Type | Field and Description |
|---|---|
static int |
FILL_PARENT |
static int |
GONE_UNSET |
static int |
INVISIBLE |
static int |
MATCH_CONSTRAINT |
static int |
MATCH_CONSTRAINT_WRAP |
static int |
MATCH_PARENT |
static int |
PARENT_ID |
static int |
ROTATE_LEFT_OF_PORTRATE |
static int |
ROTATE_NONE |
static int |
ROTATE_PORTRATE_OF_LEFT |
static int |
ROTATE_PORTRATE_OF_RIGHT |
static int |
ROTATE_RIGHT_OF_PORTRATE |
static int |
UNSET |
static int |
VISIBILITY_MODE_IGNORE |
static int |
VISIBILITY_MODE_NORMAL |
static int |
VISIBLE |
static int |
WRAP_CONTENT |
BOOLEAN_MASK, FLOAT_MASK, INT_MASK, S_CUSTOM, STRING_MASK, TYPE_FRAME_POSITION, TYPE_TARGET| Constructor and Description |
|---|
MotionWidget() |
MotionWidget(WidgetFrame f) |
| Modifier and Type | Method and Description |
|---|---|
MotionWidget |
findViewById(int mTransformPivotTarget) |
float |
getAlpha() |
int |
getBottom() |
CustomVariable |
getCustomAttribute(java.lang.String name) |
java.util.Set<java.lang.String> |
getCustomAttributeNames() |
int |
getHeight() |
int |
getId(java.lang.String name) |
int |
getLeft() |
java.lang.String |
getName() |
MotionWidget |
getParent() |
float |
getPivotX() |
float |
getPivotY() |
int |
getRight() |
float |
getRotationX() |
float |
getRotationY() |
float |
getRotationZ() |
float |
getScaleX() |
float |
getScaleY() |
int |
getTop() |
float |
getTranslationX() |
float |
getTranslationY() |
float |
getTranslationZ() |
float |
getValueAttributes(int id)
Sets the attributes
|
int |
getVisibility() |
WidgetFrame |
getWidgetFrame() |
int |
getWidth() |
int |
getX() |
int |
getY() |
void |
layout(int l,
int t,
int r,
int b) |
void |
setBounds(int left,
int top,
int right,
int bottom) |
void |
setCustomAttribute(java.lang.String name,
int type,
boolean value) |
void |
setCustomAttribute(java.lang.String name,
int type,
float value) |
void |
setCustomAttribute(java.lang.String name,
int type,
int value) |
void |
setCustomAttribute(java.lang.String name,
int type,
java.lang.String value) |
void |
setInterpolatedValue(CustomAttribute attribute,
float[] mCache) |
void |
setPivotX(float px) |
void |
setPivotY(float py) |
void |
setRotationX(float rotationX) |
void |
setRotationY(float rotationY) |
void |
setRotationZ(float rotationZ) |
void |
setScaleX(float scaleX) |
void |
setScaleY(float scaleY) |
void |
setTranslationX(float translationX) |
void |
setTranslationY(float translationY) |
void |
setTranslationZ(float tz) |
boolean |
setValue(int id,
boolean value)
Used to set boolean values
|
boolean |
setValue(int id,
float value)
Used to set float values
|
boolean |
setValue(int id,
int value)
Used to set integer values
|
boolean |
setValue(int id,
java.lang.String value)
Used to set String values
|
boolean |
setValueAttributes(int id,
float value)
Sets the attributes
|
boolean |
setValueMotion(int id,
float value) |
boolean |
setValueMotion(int id,
int value) |
boolean |
setValueMotion(int id,
java.lang.String value) |
void |
setVisibility(int visibility) |
java.lang.String |
toString() |
public static final int VISIBILITY_MODE_NORMAL
public static final int VISIBILITY_MODE_IGNORE
public static final int INVISIBLE
public static final int VISIBLE
public static final int ROTATE_NONE
public static final int ROTATE_PORTRATE_OF_RIGHT
public static final int ROTATE_PORTRATE_OF_LEFT
public static final int ROTATE_RIGHT_OF_PORTRATE
public static final int ROTATE_LEFT_OF_PORTRATE
public static final int UNSET
public static final int MATCH_CONSTRAINT
public static final int PARENT_ID
public static final int FILL_PARENT
public static final int MATCH_PARENT
public static final int WRAP_CONTENT
public static final int GONE_UNSET
public static final int MATCH_CONSTRAINT_WRAP
public MotionWidget()
public MotionWidget(WidgetFrame f)
public MotionWidget getParent()
public MotionWidget findViewById(int mTransformPivotTarget)
public void setVisibility(int visibility)
public java.lang.String getName()
public void layout(int l,
int t,
int r,
int b)
public java.lang.String toString()
toString in class java.lang.Objectpublic void setBounds(int left,
int top,
int right,
int bottom)
public boolean setValue(int id,
int value)
TypedValuessetValue in interface TypedValuespublic boolean setValue(int id,
float value)
TypedValuessetValue in interface TypedValuespublic boolean setValue(int id,
java.lang.String value)
TypedValuessetValue in interface TypedValuespublic boolean setValue(int id,
boolean value)
TypedValuessetValue in interface TypedValuespublic boolean setValueMotion(int id,
int value)
public boolean setValueMotion(int id,
java.lang.String value)
public boolean setValueMotion(int id,
float value)
public boolean setValueAttributes(int id,
float value)
id - value - public float getValueAttributes(int id)
id - public int getId(java.lang.String name)
getId in interface TypedValuespublic int getTop()
public int getLeft()
public int getBottom()
public int getRight()
public void setPivotX(float px)
public void setPivotY(float py)
public float getRotationX()
public void setRotationX(float rotationX)
public float getRotationY()
public void setRotationY(float rotationY)
public float getRotationZ()
public void setRotationZ(float rotationZ)
public float getTranslationX()
public void setTranslationX(float translationX)
public float getTranslationY()
public void setTranslationY(float translationY)
public void setTranslationZ(float tz)
public float getTranslationZ()
public float getScaleX()
public void setScaleX(float scaleX)
public float getScaleY()
public void setScaleY(float scaleY)
public int getVisibility()
public float getPivotX()
public float getPivotY()
public float getAlpha()
public int getX()
public int getY()
public int getWidth()
public int getHeight()
public WidgetFrame getWidgetFrame()
public java.util.Set<java.lang.String> getCustomAttributeNames()
public void setCustomAttribute(java.lang.String name,
int type,
float value)
public void setCustomAttribute(java.lang.String name,
int type,
int value)
public void setCustomAttribute(java.lang.String name,
int type,
boolean value)
public void setCustomAttribute(java.lang.String name,
int type,
java.lang.String value)
public CustomVariable getCustomAttribute(java.lang.String name)
public void setInterpolatedValue(CustomAttribute attribute, float[] mCache)