com.ufreedom.floatingview.transition.YumFloating.setTranslationY()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(66)

本文整理了Java中com.ufreedom.floatingview.transition.YumFloating.setTranslationY()方法的一些代码示例,展示了YumFloating.setTranslationY()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YumFloating.setTranslationY()方法的具体详情如下:
包路径:com.ufreedom.floatingview.transition.YumFloating
类名称:YumFloating
方法名:setTranslationY

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();
  }
});

相关文章