本文整理了Java中android.view.ViewPropertyAnimator.scaleYBy()
方法的一些代码示例,展示了ViewPropertyAnimator.scaleYBy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ViewPropertyAnimator.scaleYBy()
方法的具体详情如下:
包路径:android.view.ViewPropertyAnimator
类名称:ViewPropertyAnimator
方法名:scaleYBy
暂无
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public ViewPropertyAnimator scaleYBy(float value) {
android.view.ViewPropertyAnimator n = mNative.get();
if (n != null) {
n.scaleYBy(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 scaleYBy(float value) {
android.view.ViewPropertyAnimator n = mNative.get();
if (n != null) {
n.scaleYBy(value);
}
return this;
}
代码示例来源:origin: Android500/AwesomeDrawer
@Override
public ViewPropertyAnimator scaleYBy(float value) {
android.view.ViewPropertyAnimator n = mNative.get();
if (n != null) {
n.scaleYBy(value);
}
return this;
}
代码示例来源:origin: kingargyle/adt-leanback-support
public static void scaleYBy(View view, float value) {
view.animate().scaleYBy(value);
}
代码示例来源: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: scottyab/HeartBeatView
/**
* Starts the heat beat/pump animation
*/
public void start() {
heartBeating = true;
animate().scaleXBy(scaleFactor).scaleYBy(scaleFactor).setDuration(duration).setListener(scaleUpListener);
}
代码示例来源: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
.scaleYBy(0.1f)
.setDuration(4000)
.setInterpolator(new LinearInterpolator())
内容来源于网络,如有侵权,请联系作者删除!