android 弹出框

android 弹出框


代码片段
     public   void  QuitApp() {
        
new  AlertDialog.Builder(Frm_Addbills. this ).setTitle( " 提示 " ).setMessage(
                
" 确定退出? " ).setIcon(R.drawable.quit).setPositiveButton( " 确定 " ,
                
new  DialogInterface.OnClickListener() {
                    
public   void  onClick(DialogInterface dialog,  int  whichButton) {    
                        billdb.close();
                        finish();
                    }
                }).setNegativeButton(
" 取消 " ,
                
new  DialogInterface.OnClickListener() {
                    
public   void  onClick(DialogInterface dialog,  int  whichButton) {
                    }
                }).show();

    }

copy from ColaBox_source  未完待续..

你可能感兴趣的:(android 弹出框)