简体   繁体   English

如何在Android Studio的不同角落设置四张图片?

[英]How can i set four picture on different corner on Android Studio?

My problem image http://i.stack.imgur.com/oF5MJ.png 我的问题图片http://i.stack.imgur.com/oF5MJ.png

How can I set the layout like this? 如何设置这样的布局? A,B,C,D means for four picture,they are all same/similar size and the line are nearly on the center. A,B,C,D表示四个图片,它们大小相同/相似,并且线条几乎居中。

I use android studio and i found they can only set on center but cannot do like this. 我使用的是android studio,我发现它们只能在中心设置,但不能这样做。

Use a TableLayout for this task. TableLayout用于此任务。 Read more here . 在这里阅读更多。

在main布局中放置一个main relativeLayout并在一个主布局中放置高度,并使用Fill_parent和main relativlayout放置四个具有match_parent属性的relativelayout的高度和宽度,并将图像放置在每个相对布局的中心。

Refer the below question there you can find your answer :) 请参考以下问题,您可以找到答案:)

Divide Screen into Four Equal Parts using Relative Layout 使用相对布局将屏幕分为四个相等的部分

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

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