亲宝软件园·资讯

展开

android imageview android Imageview 图片覆盖具体实现

人气:0
想了解android Imageview 图片覆盖具体实现的相关内容吗,在本文为您仔细讲解android imageview的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:Imageview,图片覆盖,下面大家一起来学习吧。
复制代码 代码如下:

<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>

注意:
复制代码 代码如下:

<SPAN style="FONT-SIZE: 18px"><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></SPAN>

android:background="#0000"
android:src="@drawable/a2"
注意这两个就行了图片是png透明的

加载全部内容

相关教程
猜你喜欢
用户评论