AlertDialog
来源:互联网 发布:通达信软件怎么用 编辑:程序博客网 时间:2024/06/05 00:44
在点击事件内
new AlertDialog.Builder(context)
.setTitle("提示")
.setMessage("确定取消订单吗?")
.setPositiveButton("是", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
list.remove(position);
notifyDataSetChanged();
}
}).setNegativeButton("否",null)
.create().show();
.setTitle("提示")
.setMessage("确定取消订单吗?")
.setPositiveButton("是", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
list.remove(position);
notifyDataSetChanged();
}
}).setNegativeButton("否",null)
.create().show();
阅读全文
0 0
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- Tomcat 修改/webapps/ROOT发布路径(Linux和windows环境)
- Generate Parentheses
- Java Web项目中解决中文乱码方法总结
- 图论九——最小生成树(prim)
- HorizontalScrollView与Fragment基础使用
- AlertDialog
- 冒泡程序的优化问题
- javax.persistence.entitynotfoundexception怎么解决
- CIFAR-10和CIFAR-100数据集读取显示
- 内核中的kmalloc函数详解
- JSP内置对象request、response(四)
- 【java基础:net】基于TCP的客户端与服务端进行字母大小写转换的Demonstration
- Android ShapeButton
- 【MyBatis】mybatis快速入门(二)