AlertDialog.Builder用法
2016-01-19 15:59
429 查看
AlertDialog.Builder代码
new AlertDialog.Builder(AddAddressActivity.this).setTitle("温馨提示").setMessage("保存就把数据保存到收件扫描收货地址中,删除就把该条数据删除了.").setPositiveButton("保存", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface arg0, int arg1) { Intent intent = new Intent(); intent.putExtra("address", list.get(arg2)); setResult(Activity.RESULT_OK, intent); finish(); } }).setNegativeButton("删除", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface arg0, int arg1) { String address = list.get(arg2); addressInfoDao.del(address); reload(); } }).create().show();
相关文章推荐
- Django用户认证系统 authentication system----登陆访问限制@login_required
- UIView的setNeedsLayout, layoutIfNeeded 和 layoutSubviews 方法之间的关系解释
- iOS UI界面之间传值方式的整理总结(2)单例方法
- ios UI控件关联
- <iOS Human Interface Guidelines>(iOS人机交互手册)读书笔记
- UEdit初始化加载内容偶尔失败,解决
- 解决Incorrect integer value: '' for column 'id' at row 1的方法
- Maven使用yuicompressor-maven-plugin打包压缩css、js文件
- iOS 平台UI设计小结
- UIImagePickerController显示中文界面
- UIImagePickerController显示中文界面
- 解决UITableView数据没有充满屏幕时,显示多余的空白cell的问题
- UITableView的分割线不满屏的解决方法
- Codeforces Round #313 (Div. 2) D.Equivalent Strings (字符串)
- Fuel UX wizard example
- 特殊权限SUID以及ACL
- iOS UI界面之间传值方式的整理总结(3)通知传值NSNotification
- Java String、StringBuilder 、StringBuffer用法
- 随笔ibatis的queryForMap
- iOS UI界面之间传值方式的整理总结(1)协议方法