After hours of searching and tricks, I finally got an answer.
imageView = (ImageView) view.findViewById(R.id.rating_thumb); PercentRelativeLayout.LayoutParams layoutParams = (PercentRelativeLayout.LayoutParams) imageView.getLayoutParams(); PercentLayoutHelper.PercentLayoutInfo percentLayoutInfo = layoutParams.getPercentLayoutInfo(); percentLayoutInfo.leftMarginPercent = 15 * 0.01f;
source share