com.nineoldandroids.animation.AnimatorInflater Java Examples

The following examples show how to use com.nineoldandroids.animation.AnimatorInflater. 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: ResourceAnimationAdapter.java    From ALLGO with Apache License 2.0 4 votes vote down vote up
@Override
public Animator[] getAnimators(ViewGroup parent, View view) {
	return new Animator[] { AnimatorInflater.loadAnimator(mContext, getAnimationResourceId()) };
}
 
Example #2
Source File: ResourceAnimationAdapter.java    From UltimateAndroid with Apache License 2.0 4 votes vote down vote up
@Override
public Animator[] getAnimators(final ViewGroup parent, final View view) {
    return new Animator[]{AnimatorInflater.loadAnimator(mContext, getAnimationResourceId())};
}
 
Example #3
Source File: ResourceAnimationAdapter.java    From android-open-project-demo with Apache License 2.0 4 votes vote down vote up
@Override
public Animator[] getAnimators(final ViewGroup parent, final View view) {
    return new Animator[]{AnimatorInflater.loadAnimator(mContext, getAnimationResourceId())};
}
 
Example #4
Source File: ResourceAnimationAdapter.java    From ListViewAnimations with Apache License 2.0 4 votes vote down vote up
@NonNull
@Override
public Animator[] getAnimators(@NonNull final ViewGroup parent, @NonNull final View view) {
    return new Animator[]{AnimatorInflater.loadAnimator(mContext, getAnimationResourceId())};
}
 
Example #5
Source File: ViewTransitionBuilder.java    From android-transition with Apache License 2.0 2 votes vote down vote up
/**
 * See {@link #animator(Animator)}.
 *
 * @param context
 * @param animatorId
 * @return
 */
public ViewTransitionBuilder animator(@NonNull Context context, int animatorId) {
    animator(AnimatorInflater.loadAnimator(context, animatorId));
    return this;
}