我试图找出一种方法来对齐2个图像。第一幅图像是边界图像(像宝丽来),第二幅图像。图片应在边界(大约从左侧与真实的边界图像的顶部20dp)的拐角处开始,但这个距离上,你有什么不同的屏幕...对齐2个图像,所以第一个作为第二个边框的边框
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<ImageView
android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:src="@drawable/border" />
</RelativeLayout>
这是我现在得到:
最难的事情是图像不应该跳出边界图像和全景后面的背景(边框+图片)是可变的!
也许你可以使用这个问题的答案: http://stackoverflow.com/questions/3263611/border-在图像中查看在Android – 2012-04-24 09:28:43
不,我需要图像作为边界... – Ferdau 2012-04-24 09:31:35