当前位置: 首页>>代码示例>>Java>>正文


Java ScaleAnimation.setStartOffset方法代码示例

本文整理汇总了Java中android.view.animation.ScaleAnimation.setStartOffset方法的典型用法代码示例。如果您正苦于以下问题:Java ScaleAnimation.setStartOffset方法的具体用法?Java ScaleAnimation.setStartOffset怎么用?Java ScaleAnimation.setStartOffset使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.view.animation.ScaleAnimation的用法示例。


在下文中一共展示了ScaleAnimation.setStartOffset方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: startScale

import android.view.animation.ScaleAnimation; //导入方法依赖的package包/类
private ScaleAnimation startScale() {
	ScaleAnimation scale = new ScaleAnimation(0, 1, 0, 1, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
	scale.setInterpolator(this, android.R.anim.accelerate_interpolator);
	scale.setStartOffset(0);
	scale.setDuration(1500);
	return scale;
}
 
开发者ID:isuhao,项目名称:QMark,代码行数:8,代码来源:WelcomeSnowActy.java

示例2: randomScale

import android.view.animation.ScaleAnimation; //导入方法依赖的package包/类
private ScaleAnimation randomScale() {
	float scaleTo = (float) (0.3f + Math.random() * 0.5f);
	ScaleAnimation scale = new ScaleAnimation(1, scaleTo, 1, scaleTo, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
	scale.setRepeatCount(Animation.INFINITE);
	scale.setRepeatMode(Animation.REVERSE);
	scale.setStartOffset(1000);
	scale.setDuration((int) (Math.random() * 3000) + 1000);
	return scale;
}
 
开发者ID:isuhao,项目名称:QMark,代码行数:10,代码来源:WelcomeSnowActy.java

示例3: endScale

import android.view.animation.ScaleAnimation; //导入方法依赖的package包/类
private ScaleAnimation endScale(int startTime) {
	ScaleAnimation scale = new ScaleAnimation(1, 0, 1, 0, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
	scale.setInterpolator(this, android.R.anim.decelerate_interpolator);
	scale.setStartOffset(startTime - 300);
	scale.setDuration(300);
	return scale;
}
 
开发者ID:isuhao,项目名称:QMark,代码行数:8,代码来源:WelcomeSnowActy.java

示例4: addTextZoomAnimations

import android.view.animation.ScaleAnimation; //导入方法依赖的package包/类
private void addTextZoomAnimations(AnimationSet set) {
    ScaleAnimation mScaleAnim = new ScaleAnimation(1, SCALE_AMOUNT, 1f, SCALE_AMOUNT, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
    mScaleAnim.setDuration(CHARACTER_ANIM_DURATION);
    set.addAnimation(mScaleAnim);
    ScaleAnimation mScaleDownAnim = new ScaleAnimation(1, SCALE_AMOUNT, 1f, SCALE_AMOUNT, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
    mScaleDownAnim.setDuration(CHARACTER_ANIM_DURATION);
    mScaleDownAnim.setStartOffset(CHARACTER_ANIM_DURATION + 20);
    mScaleDownAnim.setFillAfter(true);
    set.addAnimation(mScaleDownAnim);
    set.setInterpolator(interpolator);
}
 
开发者ID:HarinTrivedi,项目名称:AnimatedPullToRefresh-master,代码行数:12,代码来源:AnimationHelper.java

示例5: addLoopScaleAnimations

import android.view.animation.ScaleAnimation; //导入方法依赖的package包/类
private void addLoopScaleAnimations(long duration, AnimationSet set) {
    ScaleAnimation mScaleAnim = new ScaleAnimation(1, SCALE_AMOUNT, 1f, SCALE_AMOUNT, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
    mScaleAnim.setDuration(duration);
    set.addAnimation(mScaleAnim);
    ScaleAnimation mScaleDownAnim = new ScaleAnimation(SCALE_AMOUNT, 1, SCALE_AMOUNT, 1, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
    mScaleDownAnim.setDuration(duration);
    mScaleDownAnim.setStartOffset(duration + 50);
    set.addAnimation(mScaleDownAnim);
    set.setInterpolator(interpolator);
}
 
开发者ID:HarinTrivedi,项目名称:AnimatedPullToRefresh-master,代码行数:11,代码来源:AnimationHelper.java

示例6: getZoomInAnimation

import android.view.animation.ScaleAnimation; //导入方法依赖的package包/类
private ScaleAnimation getZoomInAnimation(long startOffset, long touchTime) {
    ScaleAnimation zoomIn = new ScaleAnimation(SCALE_FACTOR, 1f, SCALE_FACTOR, 1f);
    zoomIn.setStartOffset(startOffset+SCALE_DURATION+touchTime);
    zoomIn.setDuration(SCALE_DURATION);
    zoomIn.setFillAfter(true);
    return zoomIn;
}
 
开发者ID:elimu-ai,项目名称:start-guide,代码行数:8,代码来源:GestureHelper.java


注:本文中的android.view.animation.ScaleAnimation.setStartOffset方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。