java - Relative layout with Percentage height and width -


i need relative layout percentage height , width implement layout below . when used linear layout , couldn't set margin , rotation imageviews . , if use relative layout , set imageviews height , width in dp type , won't resized fill empty spaces in larger screen sizes. suggestions welcome

enter image description here

android's constraintlayout released within last year can achieve percentage based layout sizing. check out official documentation page more details on how apply implementation.