LayoutParams lp = 控件id.getLayoutParams(); lp.height = 480; 控件id.setLayoutParams(lp); |
android如何动态设置控件的高度和宽度
最新推荐文章于 2024-07-12 04:24:24 发布
LayoutParams lp = 控件id.getLayoutParams(); lp.height = 480; 控件id.setLayoutParams(lp); |