AlertDialog.Builder builder = new AlertDialog.Builder(XicheActivity.this); builder.setTitle("提示"); builder.setMessage("您当前的余额不足,请先充值"); builder.setNegativeButton("取消", null); builder.setPositiveButton("去充值", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { Intent intent = new Intent(XicheActivity.this, ChongzhiActivity.class); startActivity(intent); } }); builder.create().show(); return;
原生AlertDialog提示
最新推荐文章于 2019-08-15 10:07:59 发布