本文整理了Java中android.view.ViewPropertyAnimator.getDuration()
方法的一些代码示例,展示了ViewPropertyAnimator.getDuration()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ViewPropertyAnimator.getDuration()
方法的具体详情如下:
包路径:android.view.ViewPropertyAnimator
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!