【发布时间】:2011-12-24 01:28:18
【问题描述】:
在我的程序中,我使用以下代码创建了一个对话框。理想情况下,我想通过以编程方式输入宽度和高度参数来缩放对话框。谁能告诉我如何做到这一点?
dialog = new Dialog(MainActivity.this);
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
popUpLayout = Globals.layoutInflater.inflate(R.layout.pop_up_layout, null);
dialog.setContentView(popUpLayout);
dialog.show();
【问题讨论】:
标签: android dialog size height width