android 动态设置控件高度


LayoutParams lp = tvHello.getLayoutParams();
lp.height = heightOfHello;
tvHello.setLayoutParams(lp);

猜你喜欢

转载自zheyiw.iteye.com/blog/1807250