AlertDialog自定义对话框显示黑色边框
来源:互联网 发布:python 2.7 idle 编辑:程序博客网 时间:2024/05/18 00:40
AlertDialog自定义对话框显示黑色边框问题
原代码:
显示效果如下:
然后在 对话框布局文件的跟布局中设置了android:background="#00000000" 后的效果如下图:
显然这不是我想要的效果,最终解决办法如下
AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this,AlertDialog.THEME_HOLO_LIGHT);View view = LayoutInflater.from(MainActivity.this).inflate(R.layout.popupwindow01, null);builder.setView(view);dialog1 = builder.show();
加了一句代码(AlertDialog.THEME_HOLO_LIGHT)
最终的显示效果如下图:
阅读全文
0 0
- AlertDialog自定义对话框显示黑色边框
- 自定义AlertDialog,去掉黑色边框
- 如何消除自定义AlertDialog圆角化的阴影或者黑色边框
- 自定义AlertDialog去除黑色背景
- AlertDialog自定义弹出对话框
- 自定义AlertDialog对话框布局
- Android 自定义AlertDialog对话框
- AlertDialog(自定义对话框)示例
- android,Alertdialog,自定义对话框
- 自定义对话框AlertDialog
- Android--自定义对话框--AlertDialog
- 自定义AlertDialog对话框
- AlertDialog 自定义对话框视图
- AlertDialog对话框-自定义View
- Android的AlertDialog,setView后去除黑色边框
- Android的AlertDialog,setView后去除黑色边框
- 自定义Dialog,去除系统默认黑色背景以及边框并设置dialog的显示位置
- 自定义Dialog,去除系统默认黑色背景以及边框并设置dialog的显示位置
- 讲给Android程序员看的前端教程(20)——float浮动
- 关于C和我
- Codeforces Round #444 (Div. 2)
- Android----SeekBar进度条显示以及改变滑块样式基础
- 反射-基础
- AlertDialog自定义对话框显示黑色边框
- 深入浅出Redis-redis哨兵集群
- 【bzoj1082】[SCOI2005]栅栏
- Redis系列(二)持久化
- html为视频添加播放暂停按钮
- Tomcat9.0 debug启动超时
- 视频
- 机器学习系列(11)_Python中Gradient Boosting Machine(GBM)调参方法详解
- BottomTabBar实现底部导航页