本文整理了Java中com.ufreedom.floatingview.transition.YumFloating.setTranslationY()
方法的一些代码示例,展示了YumFloating.setTranslationY()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YumFloating.setTranslationY()
方法的具体详情如下:
包路径:com.ufreedom.floatingview.transition.YumFloating
类名称:YumFloating
方法名:setTranslationY
暂无
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onAnimationUpdate(ValueAnimator valueAnimator) {
yumFloating.setTranslationY((Float) valueAnimator.getAnimatedValue());
}
});
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onAnimationUpdate(ValueAnimator valueAnimator) {
yumFloating.setTranslationY(-(Float) valueAnimator.getAnimatedValue());
}
});
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
yumFloating.setTranslationY(0);
yumFloating.setAlpha(0f);
}
});
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onAnimationUpdate(ValueAnimator valueAnimator) {
float value = (float) valueAnimator.getAnimatedValue();
PathPosition floatingPosition = getFloatingPosition(value);
yumFloating.setTranslationX(floatingPosition.x);
yumFloating.setTranslationY(floatingPosition.y);
}
});
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onAnimationUpdate(ValueAnimator valueAnimator) {
float value = (float) valueAnimator.getAnimatedValue();
PathPosition floatingPosition = getFloatingPosition(value);
yumFloating.setTranslationX(floatingPosition.x);
yumFloating.setTranslationY(floatingPosition.y);
}
});
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onAnimationUpdate(ValueAnimator valueAnimator) {
float value = (float) valueAnimator.getAnimatedValue();
PathPosition floatingPosition = getFloatingPosition(value);
yumFloating.setTranslationX(floatingPosition.x);
yumFloating.setTranslationY(floatingPosition.y);
}
});
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
yumFloating.setTranslationX(0);
yumFloating.setTranslationY(0);
yumFloating.setAlpha(0f);
}
});
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
yumFloating.setTranslationX(0);
yumFloating.setTranslationY(0);
yumFloating.setAlpha(0f);
yumFloating.clear();
}
});
内容来源于网络,如有侵权,请联系作者删除!