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


Java ScaleAnimation.setRepeatCount方法代码示例

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


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

示例1: ScaleLoadingLayout

import android.view.animation.ScaleAnimation; //导入方法依赖的package包/类
public ScaleLoadingLayout(Context context, Mode mode, Orientation scrollDirection, TypedArray attrs) {
		super(context, mode, scrollDirection, attrs);
		/**创建缩放动画动画*/
		mRotateDrawableWhilePulling = attrs.getBoolean(R.styleable.PullToRefresh_ptrRotateDrawableWhilePulling, true);

//		mContentLayout.setSca(ScaleType.MATRIX);
//		mHeaderImageMatrix = new Matrix();
//		mHeaderImage.setImageMatrix(mHeaderImageMatrix);

		mScalAnimation = new ScaleAnimation(BASE_SCALE, 1, Animation.RELATIVE_TO_SELF, BASE_SCALE, Animation.RELATIVE_TO_SELF,
				1);
		mScalAnimation.setInterpolator(ANIMATION_INTERPOLATOR);
		mScalAnimation.setDuration(ROTATION_ANIMATION_DURATION);
		mScalAnimation.setRepeatCount(Animation.INFINITE);
		mScalAnimation.setRepeatMode(Animation.RESTART);
	}
 
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:17,代码来源:ScaleLoadingLayout.java

示例2: onSizeChanged

import android.view.animation.ScaleAnimation; //导入方法依赖的package包/类
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
    super.onSizeChanged(w, h, oldw, oldh);
    WIDTH = w;
    HEIGHT = h;

    scaleAnimation = new ScaleAnimation(1.0f, zoomScale, 1.0f, zoomScale, w / 2, h / 2);
    scaleAnimation.setDuration(zoomDuration);
    scaleAnimation.setRepeatMode(Animation.REVERSE);
    scaleAnimation.setRepeatCount(1);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:12,代码来源:RippleView.java

示例3: 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

示例4: onSizeChanged

import android.view.animation.ScaleAnimation; //导入方法依赖的package包/类
@Override
   protected void onSizeChanged(int w, int h, int oldw, int oldh)
{
       super.onSizeChanged(w, h, oldw, oldh);
       WIDTH = w;
       HEIGHT = h;

       scaleAnimation = new ScaleAnimation(1.0f, zoomScale, 1.0f, zoomScale, w / 2, h / 2);
       scaleAnimation.setDuration(zoomDuration);
       scaleAnimation.setRepeatMode(Animation.REVERSE);
       scaleAnimation.setRepeatCount(1);
   }
 
开发者ID:stytooldex,项目名称:stynico,代码行数:13,代码来源:bilibili.java

示例5: wave

import android.view.animation.ScaleAnimation; //导入方法依赖的package包/类
public void wave() {
    AnimationSet as = new AnimationSet(true);
    ScaleAnimation sa = new ScaleAnimation(1f, 1.5f, 1f, 1.5f, ScaleAnimation.RELATIVE_TO_SELF,
            0.5f, ScaleAnimation.RELATIVE_TO_SELF, 0.5f);
    sa.setDuration(ANIMATIONEACHOFFSET * 3);
    sa.setRepeatCount(10);// 设置循环
    AlphaAnimation aniAlp = new AlphaAnimation(1, 0.1f);
    aniAlp.setRepeatCount(10);// 设置循环
    as.setDuration(ANIMATIONEACHOFFSET * 3);
    as.addAnimation(sa);
    as.addAnimation(aniAlp);
    labelIcon.startAnimation(as);
}
 
开发者ID:Sherchen,项目名称:AnimationsDemo,代码行数:14,代码来源:LabelView.java

示例6: animationScale

import android.view.animation.ScaleAnimation; //导入方法依赖的package包/类
public static void animationScale(View view, float sizeIn, float sizeOut, int duration) {
  ScaleAnimation scaleAnimation = new ScaleAnimation(sizeIn, sizeOut, sizeIn, sizeOut,
      Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
  scaleAnimation.setDuration(duration);
  scaleAnimation.setRepeatMode(Animation.REVERSE);
  scaleAnimation.setRepeatCount(Animation.INFINITE);
  view.startAnimation(scaleAnimation);
}
 
开发者ID:AtlantPlatform,项目名称:atlant-android,代码行数:9,代码来源:AnimationUtils.java

示例7: scale

import android.view.animation.ScaleAnimation; //导入方法依赖的package包/类
private void scale(View v) {
    ScaleAnimation scaleAnimation = new ScaleAnimation(1, 1, 1, 0.9f,
            Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF,
            1.2f);
    scaleAnimation.setRepeatMode(Animation.REVERSE);
    scaleAnimation.setInterpolator(new AccelerateInterpolator());
    scaleAnimation.setDuration(150);
    scaleAnimation.setRepeatCount(-1);
    v.startAnimation(scaleAnimation);
}
 
开发者ID:tohodog,项目名称:QSRefreshLayout,代码行数:11,代码来源:ElemeRefreshView.java


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