废话少说,具体代码示例如下:
LayoutInflater mInflater = (LayoutInflater) getContext()
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View view = mInflater.inflate(R.layout.recordlayout, null);
view.setMinimumHeight(200);
view.setMinimumWidth(500);
LinearLayout layout = (LinearLayout) view
.findViewById(R.id.id_recordlayout);
Anroid中设置AlertDialog对话框的高度和宽度
最新推荐文章于 2020-06-13 14:08:58 发布