当前位置: 首页>>代码示例>>Java>>正文


Java AnimatorProxy类代码示例

本文整理汇总了Java中com.actionbarsherlock.internal.nineoldandroids.view.animation.AnimatorProxy的典型用法代码示例。如果您正苦于以下问题:Java AnimatorProxy类的具体用法?Java AnimatorProxy怎么用?Java AnimatorProxy使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AnimatorProxy类属于com.actionbarsherlock.internal.nineoldandroids.view.animation包,在下文中一共展示了AnimatorProxy类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: makeOutAnimation

import com.actionbarsherlock.internal.nineoldandroids.view.animation.AnimatorProxy; //导入依赖的package包/类
private Animator makeOutAnimation() {
    ObjectAnimator buttonAnimator = ObjectAnimator.ofFloat(mClose, "translationX",
            -mClose.getWidth() - ((MarginLayoutParams) mClose.getLayoutParams()).leftMargin);
    buttonAnimator.setDuration(200);
    buttonAnimator.addListener(this);
    buttonAnimator.setInterpolator(new DecelerateInterpolator());

    AnimatorSet set = new AnimatorSet();
    AnimatorSet.Builder b = set.play(buttonAnimator);

    if (mMenuView != null) {
        final int count = mMenuView.getChildCount();
        if (count > 0) {
            for (int i = 0; i < 0; i++) {
                AnimatorProxy child = AnimatorProxy.wrap(mMenuView.getChildAt(i));
                child.setScaleY(0);
                ObjectAnimator a = ObjectAnimator.ofFloat(child, "scaleY", 0);
                a.setDuration(100);
                a.setStartDelay(i * 70);
                b.with(a);
            }
        }
    }

    return set;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:27,代码来源:ActionBarContextView.java

示例2: getAlpha

import com.actionbarsherlock.internal.nineoldandroids.view.animation.AnimatorProxy; //导入依赖的package包/类
public float getAlpha() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getAlpha();
    } else {
        return super.getAlpha();
    }
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:NineViewGroup.java

示例3: setAlpha

import com.actionbarsherlock.internal.nineoldandroids.view.animation.AnimatorProxy; //导入依赖的package包/类
public void setAlpha(float alpha) {
    if (AnimatorProxy.NEEDS_PROXY) {
        mProxy.setAlpha(alpha);
    } else {
        super.setAlpha(alpha);
    }
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:NineViewGroup.java

示例4: getTranslationX

import com.actionbarsherlock.internal.nineoldandroids.view.animation.AnimatorProxy; //导入依赖的package包/类
public float getTranslationX() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getTranslationX();
    } else {
        return super.getTranslationX();
    }
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:NineViewGroup.java

示例5: setTranslationX

import com.actionbarsherlock.internal.nineoldandroids.view.animation.AnimatorProxy; //导入依赖的package包/类
public void setTranslationX(float translationX) {
    if (AnimatorProxy.NEEDS_PROXY) {
        mProxy.setTranslationX(translationX);
    } else {
        super.setTranslationX(translationX);
    }
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:NineViewGroup.java

示例6: getTranslationY

import com.actionbarsherlock.internal.nineoldandroids.view.animation.AnimatorProxy; //导入依赖的package包/类
public float getTranslationY() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getTranslationY();
    } else {
        return super.getTranslationY();
    }
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:NineViewGroup.java

示例7: setTranslationY

import com.actionbarsherlock.internal.nineoldandroids.view.animation.AnimatorProxy; //导入依赖的package包/类
public void setTranslationY(float translationY) {
    if (AnimatorProxy.NEEDS_PROXY) {
        mProxy.setTranslationY(translationY);
    } else {
        super.setTranslationY(translationY);
    }
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:NineViewGroup.java

示例8: makeInAnimation

import com.actionbarsherlock.internal.nineoldandroids.view.animation.AnimatorProxy; //导入依赖的package包/类
private Animator makeInAnimation() {
    mClose.setTranslationX(-mClose.getWidth() -
            ((MarginLayoutParams) mClose.getLayoutParams()).leftMargin);
    ObjectAnimator buttonAnimator = ObjectAnimator.ofFloat(mClose, "translationX", 0);
    buttonAnimator.setDuration(200);
    buttonAnimator.addListener(this);
    buttonAnimator.setInterpolator(new DecelerateInterpolator());

    AnimatorSet set = new AnimatorSet();
    AnimatorSet.Builder b = set.play(buttonAnimator);

    if (mMenuView != null) {
        final int count = mMenuView.getChildCount();
        if (count > 0) {
            for (int i = count - 1, j = 0; i >= 0; i--, j++) {
                AnimatorProxy child = AnimatorProxy.wrap(mMenuView.getChildAt(i));
                child.setScaleY(0);
                ObjectAnimator a = ObjectAnimator.ofFloat(child, "scaleY", 0, 1);
                a.setDuration(100);
                a.setStartDelay(j * 70);
                b.with(a);
            }
        }
    }

    return set;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:28,代码来源:ActionBarContextView.java


注:本文中的com.actionbarsherlock.internal.nineoldandroids.view.animation.AnimatorProxy类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。