本文整理汇总了Java中com.nineoldandroids.view.animation.AnimatorProxy.NEEDS_PROXY属性的典型用法代码示例。如果您正苦于以下问题:Java AnimatorProxy.NEEDS_PROXY属性的具体用法?Java AnimatorProxy.NEEDS_PROXY怎么用?Java AnimatorProxy.NEEDS_PROXY使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.nineoldandroids.view.animation.AnimatorProxy
的用法示例。
在下文中一共展示了AnimatorProxy.NEEDS_PROXY属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initAnimation
/**
* This function is called immediately before processing the first animation
* frame of an animation. If there is a nonzero <code>startDelay</code>, the
* function is called after that delay ends.
* It takes care of the final initialization steps for the
* animation. This includes setting mEvaluator, if the user has not yet
* set it up, and the setter/getter methods, if the user did not supply
* them.
*
* <p>Overriders of this method should call the superclass method to cause
* internal mechanisms to be set up correctly.</p>
*/
@Override
void initAnimation() {
if (!mInitialized) {
// mValueType may change due to setter/getter setup; do this before calling super.init(),
// which uses mValueType to set up the default type evaluator.
if ((mProperty == null) && AnimatorProxy.NEEDS_PROXY && (mTarget instanceof View) && PROXY_PROPERTIES.containsKey(mPropertyName)) {
setProperty(PROXY_PROPERTIES.get(mPropertyName));
}
int numValues = mValues.length;
for (int i = 0; i < numValues; ++i) {
mValues[i].setupSetterAndGetter(mTarget);
}
super.initAnimation();
}
}
示例2: setTranslationX
public static void setTranslationX(View view, float translationX) {
if (AnimatorProxy.NEEDS_PROXY) {
AnimatorProxy.wrap(view).setTranslationX(translationX);
} else {
Honeycomb.setTranslationX(view, translationX);
}
}
示例3: setScrollY
public static void setScrollY(View view, int scrollY) {
if (AnimatorProxy.NEEDS_PROXY) {
AnimatorProxy.wrap(view).setScrollY(scrollY);
} else {
Honeycomb.setScrollY(view, scrollY);
}
}
示例4: setPivotX
public static void setPivotX(View view, float pivotX) {
if (AnimatorProxy.NEEDS_PROXY) {
AnimatorProxy.wrap(view).setPivotX(pivotX);
} else {
Honeycomb.setPivotX(view, pivotX);
}
}
示例5: setX
public static void setX(View view, float x) {
if (AnimatorProxy.NEEDS_PROXY) {
AnimatorProxy.wrap(view).setX(x);
} else {
Honeycomb.setX(view, x);
}
}
示例6: setPivotY
public static void setPivotY(View view, float pivotY) {
if (AnimatorProxy.NEEDS_PROXY) {
AnimatorProxy.wrap(view).setPivotY(pivotY);
} else {
Honeycomb.setPivotY(view, pivotY);
}
}
示例7: setRotation
public static void setRotation(View view, float rotation) {
if (AnimatorProxy.NEEDS_PROXY) {
AnimatorProxy.wrap(view).setRotation(rotation);
} else {
Honeycomb.setRotation(view, rotation);
}
}
示例8: setRotationY
public static void setRotationY(View view, float rotationY) {
if (AnimatorProxy.NEEDS_PROXY) {
AnimatorProxy.wrap(view).setRotationY(rotationY);
} else {
Honeycomb.setRotationY(view, rotationY);
}
}
示例9: setScaleX
public static void setScaleX(View view, float scaleX) {
if (AnimatorProxy.NEEDS_PROXY) {
AnimatorProxy.wrap(view).setScaleX(scaleX);
} else {
Honeycomb.setScaleX(view, scaleX);
}
}
示例10: setY
public static void setY(View view, float y) {
if (AnimatorProxy.NEEDS_PROXY) {
AnimatorProxy.wrap(view).setY(y);
} else {
Honeycomb.setY(view, y);
}
}
示例11: setScaleY
public static void setScaleY(View view, float scaleY) {
if (AnimatorProxy.NEEDS_PROXY) {
AnimatorProxy.wrap(view).setScaleY(scaleY);
} else {
Honeycomb.setScaleY(view, scaleY);
}
}
示例12: setScrollX
public static void setScrollX(View view, int scrollX) {
if (AnimatorProxy.NEEDS_PROXY) {
AnimatorProxy.wrap(view).setScrollX(scrollX);
} else {
Honeycomb.setScrollX(view, scrollX);
}
}
示例13: setScaleY
public static void setScaleY(View view, float f)
{
if (AnimatorProxy.NEEDS_PROXY)
{
AnimatorProxy.wrap(view).setScaleY(f);
return;
} else
{
a.h(view, f);
return;
}
}
示例14: setRotationX
public static void setRotationX(View view, float f)
{
if (AnimatorProxy.NEEDS_PROXY)
{
AnimatorProxy.wrap(view).setRotationX(f);
return;
} else
{
a.e(view, f);
return;
}
}
示例15: setScrollY
public static void setScrollY(View view, int i)
{
if (AnimatorProxy.NEEDS_PROXY)
{
AnimatorProxy.wrap(view).setScrollY(i);
return;
} else
{
a.b(view, i);
return;
}
}