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

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

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

ViewPropertyAnimator.getDuration介绍

暂无

代码示例

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

@Override
public long getDuration() {
  android.view.ViewPropertyAnimator n = mNative.get();
  if (n != null) {
    return n.getDuration();
  }
  return RETURN_WHEN_NULL;
}

代码示例来源:origin: square/assertj-android

@TargetApi(ICE_CREAM_SANDWICH)
public ViewPropertyAnimatorAssert hasDuration(long duration) {
 isNotNull();
 long actualDuration = actual.getDuration();
 assertThat(actualDuration) //
   .overridingErrorMessage("Expected duration <%s> but was <%s>", duration, actualDuration) //
   .isEqualTo(duration);
 return this;
}

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

@Override
public long getDuration() {
  android.view.ViewPropertyAnimator n = mNative.get();
  if (n != null) {
    return n.getDuration();
  }
  return RETURN_WHEN_NULL;
}

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

@Override
public long getDuration() {
  return animator.getDuration();
}

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

@Override
public long getDuration() {
  android.view.ViewPropertyAnimator n = mNative.get();
  if (n != null) {
    return n.getDuration();
  }
  return RETURN_WHEN_NULL;
}

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

public static long getDuration(View view) {
  return view.animate().getDuration();
}

代码示例来源:origin: com.squareup.assertj/assertj-android

@TargetApi(ICE_CREAM_SANDWICH)
public ViewPropertyAnimatorAssert hasDuration(long duration) {
 isNotNull();
 long actualDuration = actual.getDuration();
 assertThat(actualDuration) //
   .overridingErrorMessage("Expected duration <%s> but was <%s>", duration, actualDuration) //
   .isEqualTo(duration);
 return this;
}

代码示例来源:origin: xbmc/Kore

long anim_duration = anchorView.animate().getDuration();

代码示例来源:origin: wuyr/CatchPiggy

animator.translationX(isLeft ? getWidth() + layoutParams.width : -(getWidth() + layoutParams.width))
    .setDuration(1250 + mRandom.nextInt(2750)).setListener(new AnimatorListener(RandomPiggies.this, imageView));
imageView.setTag(R.id.current_duration, animator.getDuration());
imageView.setTag(animator);
ValueAnimatorUtil.resetDurationScale();

相关文章