游戏-插件页面,未完成
This commit is contained in:
@ -128,18 +128,16 @@ public class DialogUtils {
|
||||
dialog.show();
|
||||
}
|
||||
|
||||
public static void showWarningDialog(Context context, final ConfiremListener listener) {
|
||||
public static void showWarningDialog(Context context, String msg, final ConfiremListener listener) {
|
||||
final Dialog dialog = new Dialog(context);
|
||||
View view = View.inflate(context, R.layout.search_history_delete_dialog, null);
|
||||
TextView title = (TextView) view
|
||||
.findViewById(R.id.delete_dialog_title);
|
||||
TextView title = (TextView) view.findViewById(R.id.delete_dialog_title);
|
||||
title.setText("警告");
|
||||
TextView content = (TextView) view.findViewById(R.id.delete_dialog_message);
|
||||
|
||||
content.setText("您当前的网络为2G/3G/4G,下载将会消耗移动流量,是否继续下载?");
|
||||
content.setText(msg);
|
||||
|
||||
TextView cancel = (TextView) view
|
||||
.findViewById(R.id.delete_dialog_cancel);
|
||||
TextView cancel = (TextView) view.findViewById(R.id.delete_dialog_cancel);
|
||||
cancel.setText("取消");
|
||||
cancel.setOnClickListener(new OnClickListener() {
|
||||
@Override
|
||||
@ -147,8 +145,7 @@ public class DialogUtils {
|
||||
dialog.dismiss();
|
||||
}
|
||||
});
|
||||
TextView confirem = (TextView) view
|
||||
.findViewById(R.id.delete_dialog_confirm);
|
||||
TextView confirem = (TextView) view.findViewById(R.id.delete_dialog_confirm);
|
||||
confirem.setText("继续");
|
||||
confirem.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
@ -164,6 +161,10 @@ public class DialogUtils {
|
||||
dialog.show();
|
||||
}
|
||||
|
||||
public static void showWarningDialog(Context context, ConfiremListener listener) {
|
||||
showWarningDialog(context, "您当前的网络为2G/3G/4G,下载将会消耗移动流量,是否继续下载?", listener);
|
||||
}
|
||||
|
||||
public static void showSuccessDialog(Context context) {
|
||||
final Dialog dialog = new Dialog(context);
|
||||
View view = View.inflate(context, R.layout.gamedetails_attention_dialog, null);
|
||||
|
||||
Reference in New Issue
Block a user