# Palpandi/PercentRelativeLayout

> There is some problem with those RelativeLayout and FrameLayout since you cannot set Child View's dimension in percentage. Only two ways possible are to put LinearLayout inside and use advantage from its layout_weight LayoutParams and to do it in Java code by overriding onMeasure or so.  For example if I want to place a simple red rectangle on the top-left corner with 5% margin left and 25% width inside RelativeLayout. We have to code like this.

- **Canonical URL**: https://githubrepo.cloud/repo/Palpandi/PercentRelativeLayout
- **GitHub Repository**: https://github.com/Palpandi/PercentRelativeLayout
- **Maintainer / Creator**: https://github.com/Palpandi
- **Discovered On**: Oct 31, 2026

---
*Indexed by GitHubRepo (https://githubrepo.cloud). Real-time open-source discovery & telemetry.*
