android.support.annotation.AnimatorRes Java Examples
The following examples show how to use
android.support.annotation.AnimatorRes.
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: CircleIndicator.java From XERUNG with Apache License 2.0 | 6 votes |
public void configureIndicator(int indicatorWidth, int indicatorHeight, int indicatorMargin, @AnimatorRes int animatorId, @AnimatorRes int animatorReverseId, @DrawableRes int indicatorBackgroundId, @DrawableRes int indicatorUnselectedBackgroundId) { mIndicatorWidth = indicatorWidth; mIndicatorHeight = indicatorHeight; mIndicatorMargin = indicatorMargin; mAnimatorResId = animatorId; mAnimatorReverseResId = animatorReverseId; mIndicatorBackgroundResId = indicatorBackgroundId; mIndicatorUnselectedBackgroundResId = indicatorUnselectedBackgroundId; checkIndicatorConfig(getContext()); }
Example #2
Source File: CircleIndicator.java From XERUNG with Apache License 2.0 | 6 votes |
public void configureIndicator(int indicatorWidth, int indicatorHeight, int indicatorMargin, @AnimatorRes int animatorId, @AnimatorRes int animatorReverseId, @DrawableRes int indicatorBackgroundId, @DrawableRes int indicatorUnselectedBackgroundId) { mIndicatorWidth = indicatorWidth; mIndicatorHeight = indicatorHeight; mIndicatorMargin = indicatorMargin; mAnimatorResId = animatorId; mAnimatorReverseResId = animatorReverseId; mIndicatorBackgroundResId = indicatorBackgroundId; mIndicatorUnselectedBackgroundResId = indicatorUnselectedBackgroundId; checkIndicatorConfig(getContext()); }
Example #3
Source File: CircleIndicator.java From MNImageBrowser with GNU General Public License v3.0 | 6 votes |
public void configureIndicator(int indicatorWidth, int indicatorHeight, int indicatorMargin, @AnimatorRes int animatorId, @AnimatorRes int animatorReverseId, @DrawableRes int indicatorBackgroundId, @DrawableRes int indicatorUnselectedBackgroundId) { mIndicatorWidth = indicatorWidth; mIndicatorHeight = indicatorHeight; mIndicatorMargin = indicatorMargin; mAnimatorResId = animatorId; mAnimatorReverseResId = animatorReverseId; mIndicatorBackgroundResId = indicatorBackgroundId; mIndicatorUnselectedBackgroundResId = indicatorUnselectedBackgroundId; checkIndicatorConfig(getContext()); }
Example #4
Source File: CircleIndicator.java From Android-Application-ZJB with Apache License 2.0 | 6 votes |
public void configureIndicator(int indicatorWidth, int indicatorHeight, int indicatorMargin, @AnimatorRes int animatorId, @AnimatorRes int animatorReverseId, @DrawableRes int indicatorBackgroundId, @DrawableRes int indicatorUnselectedBackgroundId) { mIndicatorWidth = indicatorWidth; mIndicatorHeight = indicatorHeight; mIndicatorMargin = indicatorMargin; mAnimatorResId = animatorId; mAnimatorReverseResId = animatorReverseId; mIndicatorBackgroundResId = indicatorBackgroundId; mIndicatorUnselectedBackgroundResId = indicatorUnselectedBackgroundId; checkIndicatorConfig(getContext()); }
Example #5
Source File: CircleIndicator.java From SuperIndicator with Apache License 2.0 | 6 votes |
public void configureIndicator(int indicatorWidth, int indicatorHeight, int indicatorMargin, @AnimatorRes int animatorId, @AnimatorRes int animatorReverseId, @DrawableRes int indicatorBackgroundId, @DrawableRes int indicatorUnselectedBackgroundId) { mIndicatorWidth = indicatorWidth; mIndicatorHeight = indicatorHeight; mIndicatorMargin = indicatorMargin; mAnimatorResId = animatorId; mAnimatorReverseResId = animatorReverseId; mIndicatorBackgroundResId = indicatorBackgroundId; mIndicatorUnselectedBackgroundResId = indicatorUnselectedBackgroundId; checkIndicatorConfig(getContext()); }
Example #6
Source File: CircleIndicator.java From LefishGuide with Apache License 2.0 | 6 votes |
public void configureIndicator(int indicatorWidth, int indicatorHeight, int indicatorMargin, @AnimatorRes int animatorId, @AnimatorRes int animatorReverseId, @DrawableRes int indicatorBackgroundId, @DrawableRes int indicatorUnselectedBackgroundId) { mIndicatorWidth = indicatorWidth; mIndicatorHeight = indicatorHeight; mIndicatorMargin = indicatorMargin; mAnimatorResId = animatorId; mAnimatorReverseResId = animatorReverseId; mIndicatorBackgroundResId = indicatorBackgroundId; mIndicatorUnselectedBackgroundResId = indicatorUnselectedBackgroundId; checkIndicatorConfig(getContext()); }
Example #7
Source File: PopOptions.java From scene with Apache License 2.0 | 5 votes |
@NonNull public PopOptions.Builder setAnimation(@NonNull Activity activity, @AnimRes @AnimatorRes int enterAnim, @AnimRes @AnimatorRes int exitAnim) { this.mNavigationAnimationExecutor = new AnimationOrAnimatorResourceExecutor(activity, enterAnim, exitAnim); return this; }
Example #8
Source File: CustomHandleBehavior.java From recycler-fast-scroll with Apache License 2.0 | 5 votes |
protected HandleAnimationManager(View handle, @AnimatorRes int grabAnimator, @AnimatorRes int releaseAnimator) { if (grabAnimator != -1) { this.grabAnimator = (AnimatorSet) AnimatorInflater.loadAnimator(handle.getContext(), grabAnimator); this.grabAnimator.setTarget(handle); } if (releaseAnimator != -1) { this.releaseAnimator = (AnimatorSet) AnimatorInflater.loadAnimator(handle.getContext(), releaseAnimator); this.releaseAnimator.setTarget(handle); } }
Example #9
Source File: NavOptions.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
NavOptions(int launchMode, @IdRes int popUpTo, boolean popUpToInclusive, @AnimRes @AnimatorRes int enterAnim, @AnimRes @AnimatorRes int exitAnim, @AnimRes @AnimatorRes int popEnterAnim, @AnimRes @AnimatorRes int popExitAnim) { mLaunchMode = launchMode; mPopUpTo = popUpTo; mPopUpToInclusive = popUpToInclusive; mEnterAnim = enterAnim; mExitAnim = exitAnim; mPopEnterAnim = popEnterAnim; mPopExitAnim = popExitAnim; }
Example #10
Source File: PushOptions.java From scene with Apache License 2.0 | 5 votes |
@NonNull public Builder setAnimation(@NonNull Activity activity, @AnimRes @AnimatorRes int enterAnim, @AnimRes @AnimatorRes int exitAnim) { this.mNavigationAnimationExecutor = new AnimationOrAnimatorResourceExecutor(activity, enterAnim, exitAnim); return this; }
Example #11
Source File: CustomHandleBehavior.java From recycler-fast-scroll with Apache License 2.0 | 4 votes |
public Builder withGrabAnimator(@AnimatorRes int grabAnimator) { this.grabAnimator = grabAnimator; return this; }
Example #12
Source File: CustomHandleBehavior.java From recycler-fast-scroll with Apache License 2.0 | 4 votes |
public Builder withReleaseAnimator(@AnimatorRes int releaseAnimator) { this.releaseAnimator = releaseAnimator; return this; }
Example #13
Source File: VisibilityAnimationManager.java From recycler-fast-scroll with Apache License 2.0 | 4 votes |
public AbsBuilder<T> withShowAnimator(@AnimatorRes int showAnimatorResource){ this.showAnimatorResource = showAnimatorResource; return this; }
Example #14
Source File: AnimationOrAnimatorResourceExecutor.java From scene with Apache License 2.0 | 4 votes |
public AnimationOrAnimatorResourceExecutor(Activity activity, @AnimatorRes @AnimRes int enterResId, @AnimatorRes @AnimRes int exitResId) { mEnterAnimator = AnimationOrAnimator.loadAnimation(activity, enterResId); mExitAnimator = AnimationOrAnimator.loadAnimation(activity, exitResId); }
Example #15
Source File: LoadingLayout.java From LoadingLayout with Apache License 2.0 | 4 votes |
public void setLoadingAnim(@AnimatorRes int animId) { mLoadingAnim = AnimatorInflater.loadAnimator(getContext(), animId); }
Example #16
Source File: VisibilityAnimationManager.java From recycler-fast-scroll with Apache License 2.0 | 4 votes |
public AbsBuilder<T> withHideAnimator(@AnimatorRes int hideAnimatorResource){ this.hideAnimatorResource = hideAnimatorResource; return this; }
Example #17
Source File: CookieBar.java From CookieBar2 with Apache License 2.0 | 4 votes |
public Builder setIconAnimation(@AnimatorRes int iconAnimation) { params.iconAnimator = (AnimatorSet) AnimatorInflater.loadAnimator(context, iconAnimation); return this; }
Example #18
Source File: ChipWidget.java From relight with Apache License 2.0 | 4 votes |
public ChipWidget showMotionSpecResource(@AnimatorRes int id) { view.setShowMotionSpecResource(id); return self(); }
Example #19
Source File: NavOptions.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
/** * The custom enter Animation/Animator that should be run. * @return the resource id of a Animation or Animator or -1 if none. */ @AnimRes @AnimatorRes public int getEnterAnim() { return mEnterAnim; }
Example #20
Source File: NavOptions.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
/** * The custom exit Animation/Animator that should be run. * @return the resource id of a Animation or Animator or -1 if none. */ @AnimRes @AnimatorRes public int getExitAnim() { return mExitAnim; }
Example #21
Source File: ChipWidget.java From relight with Apache License 2.0 | 4 votes |
public ChipWidget hideMotionSpecResource(@AnimatorRes int id) { view.setHideMotionSpecResource(id); return self(); }
Example #22
Source File: FragmentUtils.java From MvpRoute with Apache License 2.0 | 4 votes |
public FragmentWrapper addAnimEnd(@AnimRes @AnimatorRes int endAn) { transaction.setCustomAnimations(0, endAn); return this; }
Example #23
Source File: FragmentUtils.java From MvpRoute with Apache License 2.0 | 4 votes |
public FragmentWrapper addAnimStart(@AnimRes @AnimatorRes int startAn) { transaction.setCustomAnimations(startAn, 0); return this; }
Example #24
Source File: FragmentUtils.java From AndroidUtilCode with Apache License 2.0 | 3 votes |
/** * Replace fragment. * * @param srcFragment The source of fragment. * @param destFragment The destination of fragment. * @param destTag The destination of fragment's tag. * @param isAddStack True to add fragment in stack, false otherwise. * @param enterAnim An animation or animator resource ID used for the enter animation on the * view of the fragment being added or attached. * @param exitAnim An animation or animator resource ID used for the exit animation on the * view of the fragment being removed or detached. * @param popEnterAnim An animation or animator resource ID used for the enter animation on the * view of the fragment being readded or reattached caused by * popBackStack() or similar methods. * @param popExitAnim An animation or animator resource ID used for the enter animation on the * view of the fragment being removed or detached caused by * popBackStack() or similar methods. */ public static void replace(@NonNull final Fragment srcFragment, @NonNull final Fragment destFragment, final String destTag, final boolean isAddStack, @AnimatorRes @AnimRes final int enterAnim, @AnimatorRes @AnimRes final int exitAnim, @AnimatorRes @AnimRes final int popEnterAnim, @AnimatorRes @AnimRes final int popExitAnim) { FragmentManager fm = srcFragment.getFragmentManager(); if (fm == null) return; Args args = getArgs(srcFragment); replace(fm, destFragment, args.id, destTag, isAddStack, enterAnim, exitAnim, popEnterAnim, popExitAnim); }
Example #25
Source File: FragmentUtils.java From AndroidUtilCode with Apache License 2.0 | 3 votes |
/** * Replace fragment. * * @param fm The manager of fragment. * @param fragment The new fragment to place in the container. * @param containerId The id of container. * @param destTag The destination of fragment's tag. * @param isAddStack True to add fragment in stack, false otherwise. * @param enterAnim An animation or animator resource ID used for the enter animation on the * view of the fragment being added or attached. * @param exitAnim An animation or animator resource ID used for the exit animation on the * view of the fragment being removed or detached. * @param popEnterAnim An animation or animator resource ID used for the enter animation on the * view of the fragment being readded or reattached caused by * popBackStack() or similar methods. * @param popExitAnim An animation or animator resource ID used for the enter animation on the * view of the fragment being removed or detached caused by * popBackStack() or similar methods. */ public static void replace(@NonNull final FragmentManager fm, @NonNull final Fragment fragment, @IdRes final int containerId, final String destTag, final boolean isAddStack, @AnimatorRes @AnimRes final int enterAnim, @AnimatorRes @AnimRes final int exitAnim, @AnimatorRes @AnimRes final int popEnterAnim, @AnimatorRes @AnimRes final int popExitAnim) { FragmentTransaction ft = fm.beginTransaction(); putArgs(fragment, new Args(containerId, destTag, false, isAddStack)); addAnim(ft, enterAnim, exitAnim, popEnterAnim, popExitAnim); operate(TYPE_REPLACE_FRAGMENT, fm, ft, null, fragment); }
Example #26
Source File: FragmentUtils.java From AndroidUtilCode with Apache License 2.0 | 3 votes |
/** * Replace fragment. * * @param fm The manager of fragment. * @param fragment The new fragment to place in the container. * @param containerId The id of container. * @param destTag The destination of fragment's tag. * @param enterAnim An animation or animator resource ID used for the enter animation on the * view of the fragment being added or attached. * @param exitAnim An animation or animator resource ID used for the exit animation on the * view of the fragment being removed or detached. * @param popEnterAnim An animation or animator resource ID used for the enter animation on the * view of the fragment being readded or reattached caused by * popBackStack() or similar methods. * @param popExitAnim An animation or animator resource ID used for the enter animation on the * view of the fragment being removed or detached caused by * popBackStack() or similar methods. */ public static void replace(@NonNull final FragmentManager fm, @NonNull final Fragment fragment, @IdRes final int containerId, final String destTag, @AnimatorRes @AnimRes final int enterAnim, @AnimatorRes @AnimRes final int exitAnim, @AnimatorRes @AnimRes final int popEnterAnim, @AnimatorRes @AnimRes final int popExitAnim) { replace(fm, fragment, containerId, destTag, false, enterAnim, exitAnim, popEnterAnim, popExitAnim); }
Example #27
Source File: FragmentUtils.java From AndroidUtilCode with Apache License 2.0 | 3 votes |
/** * Replace fragment. * * @param fm The manager of fragment. * @param fragment The new fragment to place in the container. * @param containerId The id of container. * @param destTag The destination of fragment's tag. * @param isAddStack True to add fragment in stack, false otherwise. * @param enterAnim An animation or animator resource ID used for the enter animation on the * view of the fragment being added or attached. * @param exitAnim An animation or animator resource ID used for the exit animation on the * view of the fragment being removed or detached. */ public static void replace(@NonNull final FragmentManager fm, @NonNull final Fragment fragment, @IdRes final int containerId, final String destTag, final boolean isAddStack, @AnimatorRes @AnimRes final int enterAnim, @AnimatorRes @AnimRes final int exitAnim) { replace(fm, fragment, containerId, destTag, isAddStack, enterAnim, exitAnim, 0, 0); }
Example #28
Source File: FragmentUtils.java From AndroidUtilCode with Apache License 2.0 | 3 votes |
/** * Replace fragment. * * @param fm The manager of fragment. * @param fragment The new fragment to place in the container. * @param containerId The id of container. * @param destTag The destination of fragment's tag. * @param enterAnim An animation or animator resource ID used for the enter animation on the * view of the fragment being added or attached. * @param exitAnim An animation or animator resource ID used for the exit animation on the * view of the fragment being removed or detached. */ public static void replace(@NonNull final FragmentManager fm, @NonNull final Fragment fragment, @IdRes final int containerId, final String destTag, @AnimatorRes @AnimRes final int enterAnim, @AnimatorRes @AnimRes final int exitAnim) { replace(fm, fragment, containerId, destTag, false, enterAnim, exitAnim, 0, 0); }
Example #29
Source File: FragmentUtils.java From AndroidUtilCode with Apache License 2.0 | 3 votes |
/** * Replace fragment. * * @param srcFragment The source of fragment. * @param destFragment The destination of fragment. * @param destTag The destination of fragment's tag. * @param enterAnim An animation or animator resource ID used for the enter animation on the * view of the fragment being added or attached. * @param exitAnim An animation or animator resource ID used for the exit animation on the * view of the fragment being removed or detached. * @param popEnterAnim An animation or animator resource ID used for the enter animation on the * view of the fragment being readded or reattached caused by * popBackStack() or similar methods. * @param popExitAnim An animation or animator resource ID used for the enter animation on the * view of the fragment being removed or detached caused by * popBackStack() or similar methods. */ public static void replace(@NonNull final Fragment srcFragment, @NonNull final Fragment destFragment, final String destTag, @AnimatorRes @AnimRes final int enterAnim, @AnimatorRes @AnimRes final int exitAnim, @AnimatorRes @AnimRes final int popEnterAnim, @AnimatorRes @AnimRes final int popExitAnim) { replace(srcFragment, destFragment, destTag, false, enterAnim, exitAnim, popEnterAnim, popExitAnim); }
Example #30
Source File: FragmentUtils.java From AndroidUtilCode with Apache License 2.0 | 3 votes |
/** * Replace fragment. * * @param srcFragment The source of fragment. * @param destFragment The destination of fragment. * @param destTag The destination of fragment's tag. * @param isAddStack True to add fragment in stack, false otherwise. * @param enterAnim An animation or animator resource ID used for the enter animation on the * view of the fragment being added or attached. * @param exitAnim An animation or animator resource ID used for the exit animation on the * view of the fragment being removed or detached. */ public static void replace(@NonNull final Fragment srcFragment, @NonNull final Fragment destFragment, final String destTag, final boolean isAddStack, @AnimatorRes @AnimRes final int enterAnim, @AnimatorRes @AnimRes final int exitAnim) { replace(srcFragment, destFragment, destTag, isAddStack, enterAnim, exitAnim, 0, 0); }