|
@@ -19,7 +19,7 @@ import com.compdfkit.tools.R;
|
|
|
* @date 2020-02-21 11:42
|
|
|
* @description
|
|
|
*/
|
|
|
-public class CommonInputDialog extends AppCompatDialog {
|
|
|
+public class CCommonInputDialog extends AppCompatDialog {
|
|
|
|
|
|
private Context context;
|
|
|
|
|
@@ -44,17 +44,17 @@ public class CommonInputDialog extends AppCompatDialog {
|
|
|
private Button cancelBt;
|
|
|
private Button okBt;
|
|
|
|
|
|
- public CommonInputDialog(Context context) {
|
|
|
+ public CCommonInputDialog(Context context) {
|
|
|
super(context);
|
|
|
initView(context);
|
|
|
}
|
|
|
|
|
|
- public CommonInputDialog(Context context, int theme) {
|
|
|
+ public CCommonInputDialog(Context context, int theme) {
|
|
|
super(context, theme);
|
|
|
initView(context);
|
|
|
}
|
|
|
|
|
|
- protected CommonInputDialog(Context context, boolean cancelable, OnCancelListener cancelListener) {
|
|
|
+ protected CCommonInputDialog(Context context, boolean cancelable, OnCancelListener cancelListener) {
|
|
|
super(context, cancelable, cancelListener);
|
|
|
initView(context);
|
|
|
}
|
|
@@ -124,31 +124,31 @@ public class CommonInputDialog extends AppCompatDialog {
|
|
|
messageEt.setInputType(type);
|
|
|
}
|
|
|
|
|
|
- public CommonInputDialog setTitle(String title) {
|
|
|
+ public CCommonInputDialog setTitle(String title) {
|
|
|
this.title = title;
|
|
|
titleTv.setText(title);
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
- public CommonInputDialog setMessage(String message) {
|
|
|
+ public CCommonInputDialog setMessage(String message) {
|
|
|
this.messageStrTv = message;
|
|
|
messageTv.setText(message);
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
- public CommonInputDialog setHintInputText(String message) {
|
|
|
+ public CCommonInputDialog setHintInputText(String message) {
|
|
|
this.message = message;
|
|
|
messageEt.setHint(message);
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
- public CommonInputDialog setCancelCallback(String cancelStr, Runnable cancelCallback) {
|
|
|
+ public CCommonInputDialog setCancelCallback(String cancelStr, Runnable cancelCallback) {
|
|
|
this.cancelStr = cancelStr;
|
|
|
this.cancelCallback = cancelCallback;
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
- public CommonInputDialog setOkCallback(String okStr, OnInputConpleteListener onInputConpleteListener) {
|
|
|
+ public CCommonInputDialog setOkCallback(String okStr, OnInputConpleteListener onInputConpleteListener) {
|
|
|
this.okStr = okStr;
|
|
|
this.onInputConpleteListener = onInputConpleteListener;
|
|
|
return this;
|