ViewAnimationUtils.java 文件源码

java
阅读 36 收藏 0 点赞 0 评论 0

项目:Nibo 作者:
/**
 * Lifting view
 *
 * @param view The animation target
 * @param baseRotation initial Rotation X in 3D space
 * @param fromY initial Y position of view
 * @param duration aniamtion duration
 * @param startDelay start delay before animation begin
 */
@Deprecated
public static void liftingFromBottom(View view, float baseRotation, float fromY, int duration, int startDelay){
    view.setRotationX(baseRotation);
    view.setTranslationY(fromY);

    view
            .animate()
            .setInterpolator(new AccelerateDecelerateInterpolator())
            .setDuration(duration)
            .setStartDelay(startDelay)
            .rotationX(0)
            .translationY(0)
            .start();

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号