标签:android style blog color width re
TextView textView= (TextView)findViewById(R.id.textview); LinearLayout.LayoutParams linearParams =(LinearLayout.LayoutParams) textView.getLayoutParams(); //取控件textView当前的布局参数 linearParams.height = 20;// 控件的高强制设成20 linearParams.width = 30;// 控件的宽强制设成30 textView.setLayoutParams(linearParams); //使设置好的布局参数应用到控件</pre>
Android 动态设置控件高度,布布扣,bubuko.com
标签:android style blog color width re
原文地址:http://www.cnblogs.com/niray/p/3857217.html