Android 改变AlertDialog的大小

 1 1)更改AlertDialog窗口大小的方法:
2 AlertDialog dialog = new AlertDialog.Builder(this).create();
3 dialog.show();
4 WindowManager.LayoutParams params = dialog.getWindow().getAttributes();
5 params.width = 200;
6 params.height = 200 ;
7 dialog.getWindow().setAttributes(params);
8
9 2)去除边框
10 AlertDialog.setView(view,0,0,0,0);



posted @ 2011-09-28 12:54  瓦尔登湖  阅读(11493)  评论(3编辑  收藏  举报