MotionWidget
public class MotionWidget implements TypedValues
Summary
Nested types |
|---|
public class MotionWidget.Motion |
public class MotionWidget.PropertySet |
Constants |
|
|---|---|
static final int |
FILL_PARENT = -1 |
static final int |
GONE_UNSET = -2147483648 |
static final int |
INVISIBLE = 0 |
static final int |
MATCH_CONSTRAINT = 0 |
static final int |
|
static final int |
MATCH_PARENT = -1 |
static final int |
PARENT_ID = 0 |
static final int |
|
static final int |
ROTATE_NONE = 0 |
static final int |
|
static final int |
|
static final int |
|
static final int |
UNSET = -1 |
static final int |
|
static final int |
|
static final int |
VISIBLE = 4 |
static final int |
WRAP_CONTENT = -2 |
Public constructors |
|---|
Public methods |
|
|---|---|
MotionWidget |
findViewById(int mTransformPivotTarget) |
float |
getAlpha() |
int |
|
CustomVariable |
getCustomAttribute(String name) |
Set<String> |
|
int |
|
int |
|
int |
getLeft() |
String |
getName() |
MotionWidget |
|
float |
|
float |
|
int |
getRight() |
float |
|
float |
|
float |
|
float |
|
float |
|
int |
getTop() |
float |
|
float |
|
float |
|
float |
getValueAttributes(int id)Sets the attributes |
int |
|
WidgetFrame |
|
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(String name, int type, boolean value) |
void |
setCustomAttribute(String name, int type, float value) |
void |
setCustomAttribute(String name, int type, int value) |
void |
setCustomAttribute(String name, int type, 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 |
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, String value) |
void |
setVisibility(int visibility) |
String |
toString() |
void |
updateMotion(TypedValues toUpdate)This populates the motion attributes from widgetFrame to the MotionWidget |
Inherited Constants |
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Constants
Public constructors
Public methods
setCustomAttribute
Added in 1.1.1
public void setCustomAttribute(String name, int type, boolean value)
setCustomAttribute
Added in 1.1.1
public void setCustomAttribute(String name, int type, float value)
setCustomAttribute
Added in 1.1.1
public void setCustomAttribute(String name, int type, String value)
setInterpolatedValue
Added in 1.1.1
public void setInterpolatedValue(CustomAttribute attribute, float[] mCache)
setValue
Added in 1.1.1
public boolean setValue(int id, boolean value)
Used to set boolean values
| Returns | |
|---|---|
boolean |
true if it accepted the value |
setValue
Added in 1.1.1
public boolean setValue(int id, float value)
Used to set float values
| Returns | |
|---|---|
boolean |
true if it accepted the value |
setValue
Added in 1.1.1
public boolean setValue(int id, int value)
Used to set integer values
| Returns | |
|---|---|
boolean |
true if it accepted the value |
setValue
Added in 1.1.1
public boolean setValue(int id, String value)
Used to set String values
| Returns | |
|---|---|
boolean |
true if it accepted the value |
setValueAttributes
Added in 1.1.1
public boolean setValueAttributes(int id, float value)
Sets the attributes
updateMotion
Added in 1.1.1
public void updateMotion(TypedValues toUpdate)
This populates the motion attributes from widgetFrame to the MotionWidget