Anroid中设置AlertDialog对话框的高度和宽度
废话少说,具体代码示例如下:
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);
|
阅读(4062) | 评论(0) | 转发(0) |