游戏-插件页面,未完成

This commit is contained in:
huangzhuanghua
2016-08-29 10:28:33 +08:00
parent 20e9fcf172
commit e3fc761414
18 changed files with 817 additions and 226 deletions

View File

@ -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);