LayoutParams

来源:互联网 发布:淘宝女装网店运营方案 编辑:程序博客网 时间:2024/05/21 09:28
 tableRow.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.WRAP_CONTENT, TableRow.LayoutParams.WRAP_CONTENT));
<pre name="code" class="html">button.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT ,LayoutParams.WRAP_CONTENT));

必须设置父控件

0 0
原创粉丝点击