Java 类com.nineoldandroids.animation.AnimatorInflater 实例源码

项目:gank-examples    文件:AnimIndicator.java   
private void init(Context context, AttributeSet attrs) {
    setOrientation(LinearLayout.HORIZONTAL);
    setGravity(Gravity.CENTER);
    handleTypedArray(context, attrs);
    mAnimationOut = (AnimatorSet) AnimatorInflater.loadAnimator(context, mAnimatorResId);
    mAnimationOut.setInterpolator(new LinearInterpolator());
    mAnimationIn = (AnimatorSet) AnimatorInflater.loadAnimator(context, mAnimatorResId);
    mAnimationIn.setInterpolator(new ReverseInterpolator());
}
项目:jianguo    文件:AnimIndicator.java   
private void init(Context context, AttributeSet attrs) {
    setOrientation(LinearLayout.HORIZONTAL);
    setGravity(Gravity.CENTER);
    handleTypedArray(context, attrs);
    mAnimationOut = (AnimatorSet) AnimatorInflater.loadAnimator(context, mAnimatorResId);
    mAnimationOut.setInterpolator(new LinearInterpolator());
    mAnimationIn = (AnimatorSet) AnimatorInflater.loadAnimator(context, mAnimatorResId);
    mAnimationIn.setInterpolator(new ReverseInterpolator());
}
项目:ListViewAnimations    文件:ResourceAnimationAdapter.java   
@NonNull
@Override
public Animator[] getAnimators(@NonNull final ViewGroup parent, @NonNull final View view) {
    return new Animator[]{AnimatorInflater.loadAnimator(mContext, getAnimationResourceId())};
}
项目:android-open-project-demo-master    文件:ResourceAnimationAdapter.java   
@Override
public Animator[] getAnimators(final ViewGroup parent, final View view) {
    return new Animator[]{AnimatorInflater.loadAnimator(mContext, getAnimationResourceId())};
}
项目:PhoneMate    文件:ResourceAnimationAdapter.java   
@NonNull
@Override
public Animator[] getAnimators(@NonNull final ViewGroup parent, @NonNull final View view) {
    return new Animator[]{AnimatorInflater.loadAnimator(mContext, getAnimationResourceId())};
}
项目:ALLGO    文件:ResourceAnimationAdapter.java   
@Override
public Animator[] getAnimators(ViewGroup parent, View view) {
    return new Animator[] { AnimatorInflater.loadAnimator(mContext, getAnimationResourceId()) };
}
项目:UltimateAndroid    文件:ResourceAnimationAdapter.java   
@Override
public Animator[] getAnimators(final ViewGroup parent, final View view) {
    return new Animator[]{AnimatorInflater.loadAnimator(mContext, getAnimationResourceId())};
}
项目:HListViewAnimations    文件:ResourceAnimationAdapter.java   
@Override
public Animator[] getAnimators(final ViewGroup parent, final View view) {
    return new Animator[]{AnimatorInflater.loadAnimator(mContext, getAnimationResourceId())};
}
项目:upes-academics    文件:ResourceAnimationAdapter.java   
@Override
public Animator[] getAnimators(final ViewGroup parent, final View view) {
    return new Animator[]{AnimatorInflater.loadAnimator(mContext, getAnimationResourceId())};
}
项目:android-open-project-demo    文件:ResourceAnimationAdapter.java   
@Override
public Animator[] getAnimators(final ViewGroup parent, final View view) {
    return new Animator[]{AnimatorInflater.loadAnimator(mContext, getAnimationResourceId())};
}
项目:SinaWeibo_Android    文件:ResourceAnimationAdapter.java   
@Override
public Animator[] getAnimators(ViewGroup parent, View view) {
    return new Animator[] { AnimatorInflater.loadAnimator(mContext, getAnimationResourceId()) };
}
项目:android-transition    文件:ViewTransitionBuilder.java   
/**
 * See {@link #animator(Animator)}.
 *
 * @param context
 * @param animatorId
 * @return
 */
public ViewTransitionBuilder animator(@NonNull Context context, int animatorId) {
    animator(AnimatorInflater.loadAnimator(context, animatorId));
    return this;
}
项目:ava-project    文件:AdapterViewAnimator.java   
/**
 * Specifies the animation used to animate a View that enters the screen.
 *
 * @param context The application's environment.
 * @param resourceID The resource id of the animation.
 *
 * @see #getInAnimation()
 * @see #setInAnimation(android.animation.ObjectAnimator)
 */
public void setInAnimation(Context context, int resourceID) {
    setInAnimation(AnimatorInflater.loadAnimator(context, resourceID));
}
项目:ava-project    文件:AdapterViewAnimator.java   
/**
 * Specifies the animation used to animate a View that exit the screen.
 *
 * @param context The application's environment.
 * @param resourceID The resource id of the animation.
 *
 * @see #getOutAnimation()
 * @see #setOutAnimation(android.animation.ObjectAnimator)
 */
public void setOutAnimation(Context context, int resourceID) {
    setOutAnimation(AnimatorInflater.loadAnimator(context, resourceID));
}