主要代码:

setContentView(R.layout.layout);
LayoutParams params = getWindow().getAttributes();
params.width = LayoutParams.MATCH_PARENT;
getWindow().setAttributes(params);

posted on 2015-03-03 10:47  LITAONO1  阅读(434)  评论(0编辑  收藏  举报