TapBarMenu.java 文件源码

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

项目:QuickDrawEverywhere 作者:
/**
 * Close the menu.
 */
public void close() {
    updateDimensions(width, height);
    state = State.CLOSED;
    showIcons(false);

    animator[LEFT].setFloatValues(0, button[LEFT]);
    animator[RIGHT].setFloatValues(width, button[RIGHT]);
    animator[RADIUS].setFloatValues(0, button[RADIUS]);
    animator[TOP].setFloatValues(0, button[TOP]);
    animator[BOTTOM].setFloatValues(height, button[BOTTOM]);

    animatorSet.cancel();
    animatorSet.start();
    if (iconClosedDrawable instanceof Animatable) {
        ((Animatable) iconClosedDrawable).start();
    }
    this.animate()
            .y(yPosition)
            .setDuration(animationDuration)
            .setInterpolator(DECELERATE_INTERPOLATOR)
            .start();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号