ViewGroup.MarginLayoutParams layoutParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
layoutParams.setMargins(10, 10, 10, 10);
view.setLayoutParams(layoutParams);
set view margin in code dynamically
最新推荐文章于 2021-03-30 11:05:18 发布