手机
当前位置:查字典教程网 >编程开发 >安卓软件开发 >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 实现圆角图片解决方案

android imageview图片居中技巧应用

Android基站定位原理及实现代码

android apk反编译到java源码的实现方法

android屏幕全屏的实现代码

android WebView组件使用总结

android 加载本地联系人实现方法

android ListView深入理解

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

Android Intent启动别的应用实现方法

精品推荐
分类导航