草庐IT

PercentageRelativeLayout

全部标签

android - 以编程方式设置 PercentageRelativeLayout 边距

请问,如何以编程方式设置imageview的边距百分比。 最佳答案 经过几个小时的谷歌搜索和调整,我终于得到了答案。imageView=(ImageView)view.findViewById(R.id.rating_thumb);PercentRelativeLayout.LayoutParamslayoutParams=(PercentRelativeLayout.LayoutParams)imageView.getLayoutParams();PercentLayoutHelper.PercentLayoutInfoperce