android.support.annotation.InterpolatorRes Java Examples

The following examples show how to use android.support.annotation.InterpolatorRes. 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: IntroActivity.java    From Prodigal with Apache License 2.0 4 votes vote down vote up
@SuppressWarnings("unused")
public void setPageScrollInterpolator(@InterpolatorRes int interpolatorRes) {
    this.pageScrollInterpolator = AnimationUtils.loadInterpolator(this, interpolatorRes);
}
 
Example #2
Source File: SnackBarItem.java    From SnackBar with Apache License 2.0 2 votes vote down vote up
/**
 * Set the Interpolator of the SnackBar animation
 *
 * @param interpolator
 * @return
 */
public Builder setInterpolatorResource(@InterpolatorRes int interpolator) {
    mSnackBarItem.mInterpolator = AnimationUtils.loadInterpolator(mSnackBarItem.mActivity, interpolator);
    return this;
}