As you may know it too, you can change the widthPercent of PercentRelativeLayout in code just like this:
PercentRelativeLayout.LayoutParams params = ((PercentRelativeLayout.LayoutParams) view.getLayoutParams());
PercentLayoutHelper.PercentLayoutInfo paramsInfo = params.getPercentLayoutInfo();
paramsInfo.widthPercent = newWidthPercent; //e.g. change form 0.5 to 0.9
paramsInfo.aspectRatio = 1;
but in run time, you can see that the height will not change according to new width percent (e.g. here you expect equal width and height because of aspect ratio equal to 1 but the height remains the same)
so, how we achieve that?