本文整理了Java中com.ufreedom.floatingview.transition.YumFloating
类的一些代码示例,展示了YumFloating
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YumFloating
类的具体详情如下:
包路径:com.ufreedom.floatingview.transition.YumFloating
类名称:YumFloating
[英]Author UFreedom Date : 2016 十月 19
[中]作者自由日期:2016年十月 19
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
yumFloating.setTranslationX(0);
yumFloating.setTranslationY(0);
yumFloating.setAlpha(0f);
yumFloating.clear();
}
});
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onReboundUpdate(double currentValue) {
yumFloating.setScaleX((float) currentValue);
yumFloating.setScaleY((float) currentValue);
}
}).start(yumFloating);
代码示例来源:origin: UFreedom/FloatingView
@Override
public void setScrollX(int scrollX) {
View targetView;
if ((targetView = getTargetView()) != null){
targetView.setScaleX(scrollX);
}
}
代码示例来源: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 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.setTranslationY(0);
yumFloating.setAlpha(0f);
}
});
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
yumFloating.setAlpha(0f);
yumFloating.clear();
}
});
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onAnimationUpdate(ValueAnimator valueAnimator) {
yumFloating.setAlpha((Float) valueAnimator.getAnimatedValue());
}
});
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onAnimationUpdate(ValueAnimator valueAnimator) {
yumFloating.setTranslationY((Float) valueAnimator.getAnimatedValue());
}
});
代码示例来源:origin: UFreedom/FloatingView
public void start(final YumFloating yumFloating){
if (mConfig == -1){
throw new IllegalStateException("Hi , You must call one of the method configBouncinessAndSpeed and configTensionAndFriction to make mConfig");
}
Spring spring = null;
if (mConfig == 0){
spring = yumFloating.createSpringByBouncinessAndSpeed(mConfigValueOne, mConfigValueTwo);
}else if (mConfig == 1){
spring = yumFloating.createSpringByTensionAndFriction(mConfigValueOne, mConfigValueTwo);
}
start(spring);
}
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
yumFloating.clear();
}
});
代码示例来源:origin: UFreedom/FloatingView
floatingAnimator.applyFloating(new YumFloating(targetView, mSpringSystem));
代码示例来源: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) {
yumFloating.setAlpha((Float) valueAnimator.getAnimatedValue());
}
});
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onAnimationUpdate(ValueAnimator valueAnimator) {
yumFloating.setTranslationY(-(Float) valueAnimator.getAnimatedValue());
}
});
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onReboundUpdate(double currentValue) {
yumFloating.setScaleX((float) currentValue);
yumFloating.setScaleY((float) currentValue);
}
}).start(yumFloating);
代码示例来源: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) {
yumFloating.setAlpha((Float) valueAnimator.getAnimatedValue());
}
});
代码示例来源:origin: UFreedom/FloatingView
@Override
public void setScrollY(int scrollY) {
View targetView;
if ((targetView = getTargetView()) != null){
targetView.setScaleY(scrollY);
}
}
代码示例来源:origin: UFreedom/FloatingView
@Override
public void onReboundUpdate(double currentValue) {
yumFloating.setScaleX((float) currentValue);
yumFloating.setScaleY((float) currentValue);
}
}).start(yumFloating);
内容来源于网络,如有侵权,请联系作者删除!