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