android Imageview 图片覆盖具体实现

android Imageview 图片覆盖实现及注意事项如下,感兴趣的朋友可以参考下哈

复制代码 代码如下:

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/a2"
android:scaleType="fitXY"
android:layout_alignTop="@id/overview"
android:layout_alignBottom="@id/overview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>


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

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/a2"
android:scaleType="fitXY"
android:layout_alignTop="@id/overview"
android:layout_alignBottom="@id/overview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>


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

以上就是android Imageview 图片覆盖具体实现的详细内容,更多请关注0133技术站其它相关文章!

赞(0) 打赏
未经允许不得转载:0133技术站首页 » 移动