首页 > 系统 > Android > 正文

android 弹出提示框的使用(图文实例)

2019-10-24 20:56:31
字体:
来源:转载
供稿:网友
android 弹出提示框的使用(图文实例),需要的朋友可以参考一下
 

android 弹出提示框的使用(图文实例)

 

复制代码代码如下:

//删除全部

 

else if(id==R.id.btnDelet){

new AlertDialog.Builder(this).setTitle("删除提示框").setMessage("确认删除该数据?")
.setPositiveButton("确定", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dao.deletALL("customers");
shujuList();
}})
.setNegativeButton("取消",null)
.show();

}

 

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表