LinearLayout.LayoutParams lp
=newLinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
lp.setMargins(10,20,30,40);
imageView.setLayoutParams(lp);
LinearLayout.LayoutParams lp
=newLinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
lp.setMargins(10,20,30,40);
imageView.setLayoutParams(lp);
本文标题:Android 动态设置属性
本文链接:https://www.haomeiwen.com/subject/zpduuxtx.html
网友评论