假坚强 发表于 2013-8-28 16:30

显示一个模态对话框,带yes/no按钮

0显示一个模态对话框,带yes/no按钮   
new AlertDialog.Builder(efscrc.this)   
         .setMessage("Work Done! Show results?")   
               .setCancelable(false)   
               .setPositiveButton("Yes",   
         new DialogInterface.OnClickListener() {   
            public void onClick(DialogInterface dialog,int whichButton) {   
            
            showResult();   
      
            }   
         })   
         .setNegativeButton("No",   
         new DialogInterface.OnClickListener() {   
            public void onClick(DialogInterface dialog,int whichButton) {   
             dialog.dismiss();   
            }   
         })   
         .show();   
页: [1]
查看完整版本: 显示一个模态对话框,带yes/no按钮