简体   繁体   English

相对布局,百分比高度和宽度

[英]Relative layout with Percentage height and width

I need something like Relative layout with percentage height and width to implement layout below . 我需要像百分比高度和宽度的相对布局,以实现下面的布局。 when i used Linear layout , i couldn't set margin and rotation properly for imageviews . 当我使用线性布局时,我无法为图像视图正确设置边距和旋转。 and if i use Relative layout and set Imageviews height and width in dp type , they won't be resized to fill empty spaces in larger screen sizes. 如果我使用相对布局并在dp类型中设置Imageviews高度和宽度,它们将不会调整大小以填充更大屏幕尺寸的空白空间。 Any suggestions are welcome 欢迎任何建议

在此输入图像描述

Android's ConstraintLayout that was released within the last year can achieve percentage based layout sizing. 在去年发布的Android的ConstraintLayout可以实现基于百分比的布局大小调整。 Check out the official documentation page for more details on how to apply it to your implementation. 查看官方文档页面 ,了解有关如何将其应用于实施的更多详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM