线性布局中具有相同大小的圆形图像 [英] circle image with same size in linear layout
本文介绍了线性布局中具有相同大小的圆形图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨。
我想进行如下活动:
http ://i60.tinypic.com/f2xig.jpg [ ^ ]
但是在不同的屏幕尺寸下,最后一张图片与其他图片有所不同。我该如何解决?
Hi.
I want make an activity like below:
http://i60.tinypic.com/f2xig.jpg[^]
but in different screen size the last image have different from other images. how can i fix it ?
推荐答案
没有你的代码就无法回答你的问题了。假设你的需要,这可能对你有所帮助......
[这只会帮你3张图片]
Without your code it is impossible to answer your question. Assuming your need, this may be help you...
[This will help you only for 3 images]
<relativelayout>
android:id="@+id/relativeLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<imageview>
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:src="@drawable/img1"/>
<imageview>
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:centerinHorizontal="true"
android:centerinVertical="true"
android:src="@drawable/img2"/>
<imageview>
android:id="@+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:src="@drawable/img3"/>
</imageview></imageview></imageview></relativelayout>
这篇关于线性布局中具有相同大小的圆形图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文