无系统边框自定义圆角AlertDialog
来源:互联网 发布:动漫人物头像制作软件 编辑:程序博客网 时间:2024/05/16 11:45
public static AlertDialog dialog(Context context, String titles, String messages,View.OnClickListener onClickListenerLf, View.OnClickListener onClickListenerRf) { final AlertDialog alertDialog = new AlertDialog.Builder(context).create(); alertDialog.setCancelable(false); alertDialog.setCanceledOnTouchOutside(false); alertDialog.show(); Window window = alertDialog.getWindow(); window.setBackgroundDrawableResource(android.R.color.transparent); View view = LayoutInflater.from(context).inflate(R.layout.permission_dialog, null); TextView title=(TextView) view.findViewById(R.id.permission_dialog_title); TextView message=(TextView) view.findViewById(R.id.permission_dialog_message); title.setText(titles); message.setText(messages); final Button cancle = (Button) view.findViewById(R.id.permission_dialog_leftbt); final Button sure = (Button) view.findViewById(R.id.permission_dialog_rightbt); cancle.setOnClickListener(onClickListenerLf); sure.setOnClickListener(onClickListenerRf); window.setContentView(view); return alertDialog; }
0 0
- 无系统边框自定义圆角AlertDialog
- 自定义AlertDialog,去掉黑色边框
- AlertDialog自定义对话框显示黑色边框
- QT无边框圆角
- 自定义圆角边框
- 自定义dialog无边框,包括黑边白边框
- Winform 无边框 绘制自定义边框
- Winform自定义无边框窗体
- 如何消除自定义AlertDialog圆角化的阴影或者黑色边框
- 自定义View圆角边框
- 自定义仿IOS的圆角AlertDialog
- WPF圆角透明无边框窗体
- Android中自定义AlertDialog,去除黑,白边框
- Qt 无边框窗口自定义标题栏
- QT自定义窗口(无边框,自由拖动)
- 自定义文本背景,圆角边框
- Android 自定义控件边框,圆角幅度
- Android中自定义圆角边框
- Android 判断网络方式
- Android开发,从int数组到Bitmap ARGB_8888 导入失败的解决办法
- Oracle数据库迁移常用命令和问题
- zepto tap事件阻止事件冒泡
- Android WebView优化
- 无系统边框自定义圆角AlertDialog
- 再谈圆形和圆角图片--与glide搭配使用
- 用Javascript获取页面元素的位置
- SharePoint Framework系列(六)-构建第一个web part
- 用github来展示你的前端页面吧
- 使用yyi2 框架写日志,日志文件自动分多个文件问题处理
- Linux密码破解,grub故障修复,fstab修复,网络故障修复
- Verify the Developer App certificate for your account istrusted on your device.
- struts2的核心和工作原理