Android 改变AlertDialog的大小

it2026-03-26  9

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);

转载于:https://www.cnblogs.com/afirefly/archive/2011/09/28/2194092.html

相关资源:数据结构—成绩单生成器
最新回复(0)