悦享送 v3.5.1版本的 MD5 值为:111dc8a16f422da8b2f1cf208abae9ea
以下内容为反编译后的 DialogX.java 源代码,内容仅作参考
package com.kongzue.dialogx;
import android.content.Context;
import android.util.Log;
import com.kongzue.dialogx.interfaces.BaseDialog;
import com.kongzue.dialogx.interfaces.DialogLifecycleCallback;
import com.kongzue.dialogx.interfaces.DialogXStyle;
import com.kongzue.dialogx.style.MaterialStyle;
import com.kongzue.dialogx.util.InputInfo;
import com.kongzue.dialogx.util.TextInfo;
public class DialogX {
public static boolean DEBUGMODE = true;
public static final String ERROR_INIT_TIPS = "DialogX.init: 初始化异常,context 为 null 或未初始化,详情请查看 https://github.com/kongzue/DialogX/wiki";
public static TextInfo buttonTextInfo;
public static String cancelButtonText;
public static DialogLifecycleCallback<BaseDialog> dialogLifeCycleListener;
public static int dialogMaxWidth;
public static InputInfo inputInfo;
public static TextInfo menuTextInfo;
public static TextInfo menuTitleInfo;
public static TextInfo messageTextInfo;
public static TextInfo okButtonTextInfo;
public static TextInfo popTextInfo;
public static TextInfo tipTextInfo;
public static THEME tipTheme;
public static TextInfo titleTextInfo;
public static DialogXStyle globalStyle = MaterialStyle.style();
public static THEME globalTheme = THEME.LIGHT;
public static IMPL_MODE implIMPLMode = IMPL_MODE.VIEW;
public static boolean autoShowInputKeyboard = true;
public static boolean onlyOnePopTip = false;
public static int backgroundColor = -1;
public static int tipBackgroundColor = -1;
public static int tipProgressColor = -1;
public static boolean cancelable = true;
public static boolean cancelableTipDialog = false;
public static long enterAnimDuration = -1;
public static long exitAnimDuration = -1;
public static boolean autoRunOnUIThread = true;
public static boolean useHaptic = true;
@Deprecated
public static boolean useActivityLayoutTranslationNavigationBar = false;
public static int bottomDialogNavbarColor = 0;
public enum IMPL_MODE {
VIEW,
WINDOW,
DIALOG_FRAGMENT
}
public enum THEME {
LIGHT,
DARK,
AUTO
}
public static void init(Context context) {
if (context == null) {
error(ERROR_INIT_TIPS);
} else {
BaseDialog.init(context);
}
}
public static void error(Object o) {
if (DEBUGMODE) {
Log.e(">>>", o.toString());
}
}
}