本文整理了Java中android.view.animation.Animation.applyTransformation()
方法的一些代码示例,展示了Animation.applyTransformation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Animation.applyTransformation()
方法的具体详情如下:
包路径:android.view.animation.Animation
类名称:Animation
方法名:applyTransformation
暂无
代码示例来源:origin: ImmortalZ/StereoView
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
mInterpolatedTime = interpolatedTime;
invalidate();
}
}
代码示例来源:origin: nanchen2251/RxJava2Examples
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
t.compose(mTransformation);
super.applyTransformation(interpolatedTime, t);
}
}
代码示例来源:origin: kakajika/FragmentAnimations
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
if (mFromAlpha >= 0 && mToAlpha >= 0) {
mAlpha = mFromAlpha + (mToAlpha - mFromAlpha) * interpolatedTime;
}
}
代码示例来源:origin: xiaojianglaile/Calendar
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
if (isOpen()) {
moveChild(-mDeleteViewWidth / 10);
} else {
moveChild(mDeleteViewWidth / 10);
}
}
}
代码示例来源:origin: xiaojianglaile/Calendar
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
mView.setY(mPositionY + interpolatedTime * mDistance);
}
代码示例来源:origin: xiaojianglaile/Calendar
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
if (mState == ScheduleState.OPEN) {
mScheduleLayout.onCalendarScroll(mDistanceY);
} else {
mScheduleLayout.onCalendarScroll(-mDistanceY);
}
}
代码示例来源:origin: WangDaYeeeeee/GeometricWeather
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
v.setAlpha(from + (to - from) * interpolatedTime);
}
}
代码示例来源:origin: WangDaYeeeeee/Mysplash
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
if (showing) {
view.setBackgroundColor(Color.argb((int) (255 * 0.5 * interpolatedTime), 0, 0, 0));
} else {
view.setBackgroundColor(Color.argb((int) (255 * 0.5 * (1 - interpolatedTime)), 0, 0, 0));
}
}
}
代码示例来源:origin: WangDaYeeeeee/Mysplash
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
progress.setAlpha(from + (to - from) * interpolatedTime);
}
}
代码示例来源:origin: WangDaYeeeeee/GeometricWeather
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
calcCX(startX, endX, interpolatedTime);
requestLayout();
}
}
代码示例来源:origin: nanchen2251/CoordinatorAppBarDemo
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
t.compose(mTransformation);
super.applyTransformation(interpolatedTime, t);
}
}
代码示例来源:origin: stewForAni/CircleProgressMenu
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
if (interpolatedTime < 1.0f) {
mSweepAnglePer = interpolatedTime * mSweepAngle;
} else {
mSweepAnglePer = mSweepAngle;
}
postInvalidate();
}
}
代码示例来源:origin: WangDaYeeeeee/Mysplash
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
target.setAlpha(interpolatedTime);
target.setScaleX((float) (0.5 + 0.5 * interpolatedTime));
target.setScaleY((float) (0.5 + 0.5 * interpolatedTime));
target.setRotation(-90 + 90 * interpolatedTime);
}
}
代码示例来源:origin: LongDinhF/Hamburger-Button
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
rectF.set(currentLeft - (currentRight - currentLeft) * interpolatedTime, rectF.top, rectF.right, rectF.bottom);
invalidate();
}
};
代码示例来源:origin: ImmortalZ/jellyball
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
rebounceInterpolatedTime = interpolatedTime;
invalidate();
}
}
代码示例来源:origin: michael-rapp/AndroidBottomSheet
@Override
protected final void applyTransformation(final float interpolatedTime,
final Transformation transformation) {
super.applyTransformation(interpolatedTime, transformation);
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) view.getLayoutParams();
layoutParams.topMargin = Math.round(initialMargin + interpolatedTime * diff);
view.setLayoutParams(layoutParams);
}
代码示例来源:origin: stripe/stripe-android
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
FrameLayout.LayoutParams params =
(FrameLayout.LayoutParams) mCardNumberEditText.getLayoutParams();
params.leftMargin = (int) (startPoint * (1 - interpolatedTime));
mCardNumberEditText.setLayoutParams(params);
}
};
代码示例来源:origin: stripe/stripe-android
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
FrameLayout.LayoutParams cardParams =
(FrameLayout.LayoutParams) mCardNumberEditText.getLayoutParams();
cardParams.leftMargin =
(int) (-1 * mPlacementParameters.hiddenCardWidth * interpolatedTime);
mCardNumberEditText.setLayoutParams(cardParams);
}
};
代码示例来源:origin: silverforge/BusyIndicator
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
float angle = oldAngle + ((newAngle - oldAngle) * interpolatedTime);
busyIndicator.setArcAngle(angle);
busyIndicator.requestLayout();
}
}
代码示例来源:origin: WangDaYeeeeee/Mysplash
@Override
protected void applyTransformation(float interpolatedTime, Transformation t) {
super.applyTransformation(interpolatedTime, t);
float scale = (float) (0.5 + 0.5 * interpolatedTime);
float alpha = 0 + 1 * interpolatedTime;
bellBtn.setScaleX(scale);
bellBtn.setScaleY(scale);
bellBtn.setAlpha(alpha);
dot.setAlpha(alpha);
}
}
内容来源于网络,如有侵权,请联系作者删除!