改变AlertDialog的大小

1)更改AlertDialog窗口大小的方法:
AlertDialog dialog = new AlertDialog.Builder(this).create();
dialog.show();
WindowManager.LayoutParams params = dialog.getWindow().getAttributes();
params.width = 200;
params.height = 200 ;
dialog.getWindow().setAttributes(params);

2)去除边框
AlertDialog.setView(view,0,0,0,0);
 

来自:http://blog.csdn.net/pochuanpiao/article/details/6370573

发布了37 篇原创文章 · 获赞 5 · 访问量 5254

猜你喜欢

转载自blog.csdn.net/ttl_yujie/article/details/84040693
今日推荐