<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gallerylayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Gallery
android:id="@+id/overview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<ImageView
android:id="@+id/navigmaske"
android:background="#0000"
android:src="@drawable/a2"
android:scaleType="fitXY"
android:layout_alignTop="@id/overview"
android:layout_alignBottom="@id/overview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</RelativeLayout>
android:background="#0000"
android:src="@drawable/a2"
注意这两个就行了 图片是png透明的
本文介绍了一个使用Android的Gallery组件与ImageView相结合实现的布局示例。该布局通过RelativeLayout组织,利用Gallery展示一系列视图,并使用ImageView配合透明背景的PNG图片进行视觉效果的增强。
5263

被折叠的 条评论
为什么被折叠?



