Skip to content

2.0.0

Compare
Choose a tag to compare
@hss01248 hss01248 released this 24 Mar 03:22
· 25 commits to master since this release

1.增加几个全局配置项

public static boolean cancelable = true;//默认可以点击后退键来dismiss对话框
    public static boolean outsideTouchable = false;//默认外部半透明处点击消失

    /**
     * 是否在点击按钮后自动消失
     * 针对有的情况下点击按钮/item拿到回调后,需要dialog不消失
     */
    public static boolean dismissAfterResultCallback = true;
    /**
     * 半透明遮罩
     */
    public static boolean dimBehind = true;
    /**
     * 是否使用带阴影的背景(以防有的手机无法显示后面的半透明遮罩,而与下方界面黏连)
     */
    public static boolean useTheShadowBg = true;

2.完善dismissAfterResultCallback 配置项的逻辑