LinearLayout 如何动态设置 margin?
时间:2015-04-16 17:40:37
收藏:0
阅读:948
LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT); lp.setMargins(10, 20, 30, 40); imageView.setLayoutParams(lp);
动态的设置margin
给params 设置
原文:http://blog.csdn.net/love_javc_you/article/details/45077161
评论(0)