UILayoutImpl.java 文件源码

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

项目:RLibrary 作者:
/**
 * 销毁对话框的动画
 */
private void finishDialogAnim(final ViewPattern dialogPattern, final Animation animation, final Runnable end) {
      /*是否变暗*/
    if (dialogPattern.mIView.isDimBehind()) {
        AnimUtil.startArgb(dialogPattern.mIView.getDialogDimView(),
                dialogPattern.mIView.getDimColor(), Color.TRANSPARENT, DEFAULT_ANIM_TIME);
    }

    final View animView = dialogPattern.mIView.getAnimView();

    final Runnable endRunnable = new Runnable() {
        @Override
        public void run() {
            dialogPattern.mView.setAlpha(0);
            dialogPattern.mView.setVisibility(INVISIBLE);
            end.run();
        }
    };

    safeStartAnim(animView, animation, endRunnable, true);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号