将Imageview放置在每个屏幕大小的特定位置 [英] Placing an Imageview at a particular location on every screen size
本文介绍了将Imageview放置在每个屏幕大小的特定位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试制作游戏。我需要在背景ImageView上的某个特定位置放置两到三个图像。我似乎无法得到它。我正在使用FrameLayout。这是....
它是怎么回事:http://i46.tinypic.com/246udqw.png
我想要的:http:// i45。 tinypic.com/feiatx.png
这是XML:pastebin.com/1sn0DVnh
I am trying to make a game. I need to place two-three images at some particular location on a background ImageView. I cant seem to get it. I am using FrameLayout. here it is....
How it is : http://i46.tinypic.com/246udqw.png
How I want : http://i45.tinypic.com/feiatx.png
Here is the XML : pastebin.com/1sn0DVnh
推荐答案
使用图像拼接。这样你可以将它与你想要的图像对齐。
例如:
Use image splices. That way you can align it to whatever you want in the image.
for example:
android:layout_alignRight="@+id/buttonRL"
这篇关于将Imageview放置在每个屏幕大小的特定位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文