HBButton.java 文件源码

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

项目:Hamburger-Button 作者:
private Animation generateLineBackRTLStep1(final RectF rectF) {
    final float currentLeft = rectF.left;
    final float currentRight = rectF.right;

    Animation animation = new Animation() {
        @Override
        protected void applyTransformation(float interpolatedTime, Transformation t) {
            super.applyTransformation(interpolatedTime, t);
            rectF.set(currentLeft - (currentRight - currentLeft) * interpolatedTime, rectF.top, rectF.right, rectF.bottom);
            invalidate();
        }
    };
    animation.setDuration(getAnimationDuration() / 4);
    return animation;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号