手机
当前位置:查字典教程网 >编程开发 >安卓软件开发 >android Imageview 图片覆盖具体实现
android Imageview 图片覆盖具体实现
摘要:复制代码代码如下:注意:复制代码代码如下:android:background="#0000"android:src="@drawable/...

复制代码 代码如下:

<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><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透明的

【android Imageview 图片覆盖具体实现】相关文章:

android WebView组件使用总结

android使用Messenger绑定Service的多种实现方法

android如何默认打开小区广播具体实现

Android 倒影算法的实现代码

Android GridView的使用

android读取Assets图片资源保存到SD卡实例

android异步加载图片并缓存到本地实现方法

Android SlidingDrawer 抽屉效果的实现

Android 加载大图片时内存溢出怎么办

android notification 的总结分析

精品推荐
分类导航