Android本机可处理视图和可绘制对象(包括PNG图像)之间的透明性,因此您所描述的场景(ImageView在前面的部分透明性Gallery)当然是可能的。
如果您遇到问题,则可能与布局或图像有关。我已经复制了您描述的布局,并成功实现了您想要的效果。这是我使用的确切布局。
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gallerylayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
android:id="@+id/overview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
android:id="@+id/navigmaske"
android:background="#0000"
android:src="@drawable/navigmask"
android:scaleType="fitXY"
android:layout_alignTop="@id/overview"
android:layout_alignBottom="@id/overview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
请注意,我已将父级RelativeLayout的高度和宽度更改fill_parent为通常对主Activity所需的高度和宽度。然后我对准顶部和底部的ImageView顶部和底部Gallery,以确保它集中在它的前面。
我还明确将的背景设置ImageView为透明。
至于可绘制图像本身,如果您将PNG文件放在某个地方让我查看,我可以在项目中使用它,看看它是否负责。