android.view.ViewPropertyAnimator.scaleXBy()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(362)

本文整理了Java中android.view.ViewPropertyAnimator.scaleXBy()方法的一些代码示例,展示了ViewPropertyAnimator.scaleXBy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ViewPropertyAnimator.scaleXBy()方法的具体详情如下:
包路径:android.view.ViewPropertyAnimator
类名称:ViewPropertyAnimator
方法名:scaleXBy

ViewPropertyAnimator.scaleXBy介绍

暂无

代码示例

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public ViewPropertyAnimator scaleXBy(float value) {
  android.view.ViewPropertyAnimator n = mNative.get();
  if (n != null) {
    n.scaleXBy(value);
  }
  return this;
}

代码示例来源:origin: wangdan/AisenWeiBo

protected void morph(float endX, float endY, Side side, float arcDegrees, float scaleFactor,
    long duration, AnimationListener listener) {
  // Move the FAB
  startArcAnim(fab, endX, endY, arcDegrees, side, duration, interpolator, listener);
  // Scale the size of the FAB
  fab.animate().scaleXBy(scaleFactor).scaleYBy(scaleFactor).setDuration(duration)
      .setInterpolator(interpolator).start();
}

代码示例来源:origin: com.nineoldandroids/library

@Override
public ViewPropertyAnimator scaleXBy(float value) {
  android.view.ViewPropertyAnimator n = mNative.get();
  if (n != null) {
    n.scaleXBy(value);
  }
  return this;
}

代码示例来源:origin: Android500/AwesomeDrawer

@Override
public ViewPropertyAnimator scaleXBy(float value) {
  android.view.ViewPropertyAnimator n = mNative.get();
  if (n != null) {
    n.scaleXBy(value);
  }
  return this;
}

代码示例来源:origin: kingargyle/adt-leanback-support

public static void scaleXBy(View view, float value) {
  view.animate().scaleXBy(value);
}

代码示例来源:origin: scottyab/HeartBeatView

/**
 * Starts the heat beat/pump animation
 */
public void start() {
  heartBeating = true;
  animate().scaleXBy(scaleFactor).scaleYBy(scaleFactor).setDuration(duration).setListener(scaleUpListener);
}

代码示例来源:origin: scottyab/HeartBeatView

@Override
public void onAnimationEnd(Animator animation) {
  //we ignore heartBeating as we want to ensure the heart is reduced back to original size
  animate().scaleXBy(reductionScaleFactor).scaleYBy(reductionScaleFactor).setDuration(duration).setListener(scaleDownListener);
}

代码示例来源:origin: scottyab/HeartBeatView

@Override
public void onAnimationEnd(Animator animation) {
  if (heartBeating) {
    //duration twice as long for the upscale
    animate().scaleXBy(scaleFactor).scaleYBy(scaleFactor).setDuration(duration * 2).setListener(scaleUpListener);
  }
}

代码示例来源:origin: blundell/QuickSand

@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_simple_anim);

    ViewPropertyAnimator animateText = findViewById(R.id.simple_anim_text)
        .animate()
        .setDuration(5000)
        .scaleXBy(.5f);
    Quicksand.trap(KEY_SIMPLE_ANIMATE_TEXT, animateText);
  }
}

代码示例来源:origin: JmStefanAndroid/PVCloudGroupn

@Override
  public void run() {
    runOnUiThread(() -> rootView.animate().scaleXBy(0.1f).scaleYBy(0.1f).alphaBy(0.1f).setDuration(1000).setListener(new Animator.AnimatorListener() {
      @Override
      public void onAnimationStart(Animator animation) {
      }
      @Override
      public void onAnimationEnd(Animator animation) {
        startActivity(new Intent(mContext, MainActivity.class));
        overridePendingTransition(0,0);
        finish();
      }
      @Override
      public void onAnimationCancel(Animator animation) {
      }
      @Override
      public void onAnimationRepeat(Animator animation) {
      }
    }).start());
  }
}, 3000);

代码示例来源:origin: woxingxiao/GracefulMovies

.scaleXBy(0.1f)
.scaleYBy(0.1f)
.setDuration(4000)

相关文章