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


Java Animator类代码示例

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


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

示例1: makeOutAnimation

import com.actionbarsherlock.internal.nineoldandroids.animation.Animator; //导入依赖的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: onAnimationEnd

import com.actionbarsherlock.internal.nineoldandroids.animation.Animator; //导入依赖的package包/类
@Override
public void onAnimationEnd(Animator animation) {
    if (mContentView != null) {
        mContentView.setTranslationY(0);
        mContainerView.setTranslationY(0);
    }
    if (mSplitView != null && mContextDisplayMode == CONTEXT_DISPLAY_SPLIT) {
        mSplitView.setVisibility(View.GONE);
    }
    mContainerView.setVisibility(View.GONE);
    mContainerView.setTransitioning(false);
    mCurrentShowAnim = null;
    completeDeferredDestroyActionMode();
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:15,代码来源:ActionBarImpl.java

示例3: onAnimationEnd

import com.actionbarsherlock.internal.nineoldandroids.animation.Animator; //导入依赖的package包/类
@Override
public void onAnimationEnd(Animator animation) {
    if (mCanceled) return;

    mVisibilityAnim = null;
    setVisibility(mFinalVisibility);
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:ScrollingTabContainerView.java

示例4: onAnimationEnd

import com.actionbarsherlock.internal.nineoldandroids.animation.Animator; //导入依赖的package包/类
@Override
public void onAnimationEnd(Animator animation) {
    if (mCanceled) return;

    mVisibilityAnim = null;
    setVisibility(mFinalVisibility);
    if (mSplitView != null && mMenuView != null) {
        mMenuView.setVisibility(mFinalVisibility);
    }
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:11,代码来源:AbsActionBarView.java

示例5: finishAnimation

import com.actionbarsherlock.internal.nineoldandroids.animation.Animator; //导入依赖的package包/类
private void finishAnimation() {
    final Animator a = mCurrentAnimation;
    if (a != null) {
        mCurrentAnimation = null;
        a.end();
    }
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:ActionBarContextView.java

示例6: makeInAnimation

import com.actionbarsherlock.internal.nineoldandroids.animation.Animator; //导入依赖的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

示例7: onAnimationEnd

import com.actionbarsherlock.internal.nineoldandroids.animation.Animator; //导入依赖的package包/类
@Override
public void onAnimationEnd(Animator animation) {
    if (mAnimationMode == ANIMATE_OUT) {
        killMode();
    }
    mAnimationMode = ANIMATE_IDLE;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:ActionBarContextView.java


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