TextView textView;
ViewGroup.LayoutParams lp = textView.getLayoutParams();
lp.width = ViewGroup.LayoutParams.MATCH_PARENT;
lp.height = (int) ((textList.size() * 58 + 4) * getResources().getDisplayMetrics().density);
android 动态设置控件的大小
最新推荐文章于 2025-05-13 10:24:08 发布