Android 设置图像视图的坐标

Android 设置图像视图的坐标,android,image,Android,Image,我正在寻找为imageView设置坐标的方法。我想把其他的图像放在坐标上 ImageView img1 = (ImageView) findViewById(R.id.imageView1); img1.setAdjustViewBounds(true); 我的布局是这样的: <RelativeLayout android:id="@+id/rellayneuuuu" android:layout_width="fill_parent" android:layout_height

我正在寻找为imageView设置坐标的方法。我想把其他的图像放在坐标上

ImageView img1 = (ImageView) findViewById(R.id.imageView1);
img1.setAdjustViewBounds(true);
我的布局是这样的:

<RelativeLayout android:id="@+id/rellayneuuuu"
    android:layout_width="fill_parent" android:layout_height="fill_parent">
    <ImageView android:id="@+id/imageView1" android:scaleType="centerCrop"
        android:layout_width="fill_parent" android:layout_height="fill_parent"
        android:src="@drawable/image1" />
    <ImageView android:id="@+id/imageView2" android:layout_width="wrap_content"
        android:layout_height="wrap_content" android:src="@drawable/icon"
        android:layout_marginTop="40px" android:layout_marginLeft="40px" />
</RelativeLayout>

谢谢

我不确定是否能正确理解你,但从我对你的问题的了解来看,也许能给你你想要的答案

编辑


我不认为RelativeLayout设计来支持这种行为,也许你应该看看哪个设计实际上是为了支持视图的叠加

我猜屏幕上的坐标位置是什么意思?你使用的是哪种布局?是的,我指的是屏幕上的位置。这是一个可滚动的图像。在相对布局中。你的图像在X轴和Y轴上比屏幕大?嘿,你找到解决方案了吗?不,这不是我的意思。我有一个图像img1,img1上有另一个图像img2。我试着把img2放在img1上的某个地方,因为我必须在img1上放一些其他的图像。我遇到了同样的问题@bebe你找到解决方案了吗?