Subclass of RelativeLayout that supports percentage based dimensions and margins.
Edit: I have received already two comprehensive answers regarding fixed margins. While I've decided altogether to use fixed margins instead …
android android-layout margin centering android-percentrelativelayoutI try to achieve a 16:9 aspect ratio on a view with the PercentRelativeLayout. So I have put this line in …
android android-layout android-constraintlayout android-percentrelativelayout