com.actionbarsherlock.internal.nineoldandroids.view.animation.AnimatorProxy Java Examples

The following examples show how to use com.actionbarsherlock.internal.nineoldandroids.view.animation.AnimatorProxy. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ActionBarContextView.java    From zhangshangwuda with Apache License 2.0 6 votes vote down vote up
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;
}
 
Example #2
Source File: ActionBarContextView.java    From CSipSimple with GNU General Public License v3.0 6 votes vote down vote up
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;
}
 
Example #3
Source File: ActionBarContextView.java    From zen4android with MIT License 6 votes vote down vote up
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;
}
 
Example #4
Source File: NineLinearLayout.java    From android-apps with MIT License 5 votes vote down vote up
public float getAlpha() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getAlpha();
    } else {
        return super.getAlpha();
    }
}
 
Example #5
Source File: NineLinearLayout.java    From android-apps with MIT License 5 votes vote down vote up
public void setTranslationX(float translationX) {
    if (AnimatorProxy.NEEDS_PROXY) {
        mProxy.setTranslationX(translationX);
    } else {
        super.setTranslationX(translationX);
    }
}
 
Example #6
Source File: NineHorizontalScrollView.java    From zhangshangwuda with Apache License 2.0 5 votes vote down vote up
public float getAlpha() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getAlpha();
    } else {
        return super.getAlpha();
    }
}
 
Example #7
Source File: NineFrameLayout.java    From Libraries-for-Android-Developers with MIT License 5 votes vote down vote up
public void setTranslationY(float translationY) {
    if (AnimatorProxy.NEEDS_PROXY) {
        mProxy.setTranslationY(translationY);
    } else {
        super.setTranslationY(translationY);
    }
}
 
Example #8
Source File: NineLinearLayout.java    From zen4android with MIT License 5 votes vote down vote up
public float getAlpha() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getAlpha();
    } else {
        return super.getAlpha();
    }
}
 
Example #9
Source File: NineViewGroup.java    From zen4android with MIT License 5 votes vote down vote up
public void setTranslationX(float translationX) {
    if (AnimatorProxy.NEEDS_PROXY) {
        mProxy.setTranslationX(translationX);
    } else {
        super.setTranslationX(translationX);
    }
}
 
Example #10
Source File: NineViewGroup.java    From Libraries-for-Android-Developers with MIT License 5 votes vote down vote up
public float getAlpha() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getAlpha();
    } else {
        return super.getAlpha();
    }
}
 
Example #11
Source File: NineViewGroup.java    From Libraries-for-Android-Developers with MIT License 5 votes vote down vote up
public void setTranslationY(float translationY) {
    if (AnimatorProxy.NEEDS_PROXY) {
        mProxy.setTranslationY(translationY);
    } else {
        super.setTranslationY(translationY);
    }
}
 
Example #12
Source File: NineFrameLayout.java    From Libraries-for-Android-Developers with MIT License 5 votes vote down vote up
public float getTranslationY() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getTranslationY();
    } else {
        return super.getTranslationY();
    }
}
 
Example #13
Source File: NineHorizontalScrollView.java    From zen4android with MIT License 5 votes vote down vote up
public float getAlpha() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getAlpha();
    } else {
        return super.getAlpha();
    }
}
 
Example #14
Source File: NineFrameLayout.java    From zen4android with MIT License 5 votes vote down vote up
public void setAlpha(float alpha) {
    if (AnimatorProxy.NEEDS_PROXY) {
        mProxy.setAlpha(alpha);
    } else {
        super.setAlpha(alpha);
    }
}
 
Example #15
Source File: NineHorizontalScrollView.java    From Libraries-for-Android-Developers with MIT License 5 votes vote down vote up
public void setAlpha(float alpha) {
    if (AnimatorProxy.NEEDS_PROXY) {
        mProxy.setAlpha(alpha);
    } else {
        super.setAlpha(alpha);
    }
}
 
Example #16
Source File: NineViewGroup.java    From zen4android with MIT License 5 votes vote down vote up
public float getTranslationX() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getTranslationX();
    } else {
        return super.getTranslationX();
    }
}
 
Example #17
Source File: NineLinearLayout.java    From android-apps with MIT License 5 votes vote down vote up
public void setAlpha(float alpha) {
    if (AnimatorProxy.NEEDS_PROXY) {
        mProxy.setAlpha(alpha);
    } else {
        super.setAlpha(alpha);
    }
}
 
Example #18
Source File: NineHorizontalScrollView.java    From android-apps with MIT License 5 votes vote down vote up
public float getAlpha() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getAlpha();
    } else {
        return super.getAlpha();
    }
}
 
Example #19
Source File: NineFrameLayout.java    From zhangshangwuda with Apache License 2.0 5 votes vote down vote up
public float getTranslationY() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getTranslationY();
    } else {
        return super.getTranslationY();
    }
}
 
Example #20
Source File: NineHorizontalScrollView.java    From Libraries-for-Android-Developers with MIT License 5 votes vote down vote up
public float getAlpha() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getAlpha();
    } else {
        return super.getAlpha();
    }
}
 
Example #21
Source File: NineLinearLayout.java    From Libraries-for-Android-Developers with MIT License 5 votes vote down vote up
public float getAlpha() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getAlpha();
    } else {
        return super.getAlpha();
    }
}
 
Example #22
Source File: NineFrameLayout.java    From android-apps with MIT License 5 votes vote down vote up
public void setTranslationY(float translationY) {
    if (AnimatorProxy.NEEDS_PROXY) {
        mProxy.setTranslationY(translationY);
    } else {
        super.setTranslationY(translationY);
    }
}
 
Example #23
Source File: NineFrameLayout.java    From android-apps with MIT License 5 votes vote down vote up
public float getTranslationY() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getTranslationY();
    } else {
        return super.getTranslationY();
    }
}
 
Example #24
Source File: NineFrameLayout.java    From android-apps with MIT License 5 votes vote down vote up
public void setAlpha(float alpha) {
    if (AnimatorProxy.NEEDS_PROXY) {
        mProxy.setAlpha(alpha);
    } else {
        super.setAlpha(alpha);
    }
}
 
Example #25
Source File: NineFrameLayout.java    From android-apps with MIT License 5 votes vote down vote up
public float getAlpha() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getAlpha();
    } else {
        return super.getAlpha();
    }
}
 
Example #26
Source File: NineLinearLayout.java    From zen4android with MIT License 5 votes vote down vote up
public void setAlpha(float alpha) {
    if (AnimatorProxy.NEEDS_PROXY) {
        mProxy.setAlpha(alpha);
    } else {
        super.setAlpha(alpha);
    }
}
 
Example #27
Source File: NineViewGroup.java    From zhangshangwuda with Apache License 2.0 5 votes vote down vote up
public void setTranslationX(float translationX) {
    if (AnimatorProxy.NEEDS_PROXY) {
        mProxy.setTranslationX(translationX);
    } else {
        super.setTranslationX(translationX);
    }
}
 
Example #28
Source File: NineLinearLayout.java    From zen4android with MIT License 5 votes vote down vote up
public float getTranslationX() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getTranslationX();
    } else {
        return super.getTranslationX();
    }
}
 
Example #29
Source File: NineViewGroup.java    From zhangshangwuda with Apache License 2.0 5 votes vote down vote up
public float getTranslationY() {
    if (AnimatorProxy.NEEDS_PROXY) {
        return mProxy.getTranslationY();
    } else {
        return super.getTranslationY();
    }
}
 
Example #30
Source File: NineViewGroup.java    From android-apps with MIT License 5 votes vote down vote up
public void setTranslationY(float translationY) {
    if (AnimatorProxy.NEEDS_PROXY) {
        mProxy.setTranslationY(translationY);
    } else {
        super.setTranslationY(translationY);
    }
}