Chinaunix首页 | 论坛 | 博客
  • 博客访问: 574262
  • 博文数量: 192
  • 博客积分: 3780
  • 博客等级: 中校
  • 技术积分: 1487
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-26 10:11
文章存档

2012年(6)

2011年(160)

2010年(26)

分类: 嵌入式

2010-09-09 16:31:57

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


阅读(4025) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~