android Imageview 圖片覆蓋具體實現(xiàn)
更新時間:2013年06月02日 15:59:53 作者:
android Imageview 圖片覆蓋實現(xiàn)及注意事項如下,感興趣的朋友可以參考下哈
復制代碼 代碼如下:
<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透明的
您可能感興趣的文章:
- Android實現(xiàn)Listview異步加載網絡圖片并動態(tài)更新的方法
- Android 自定義圓形頭像CircleImageView支持加載網絡圖片的實現(xiàn)代碼
- 在Android的應用中實現(xiàn)網絡圖片異步加載的方法
- Android開發(fā)中ImageLoder進行圖片加載和緩存
- Android布局自定義Shap圓形ImageView可以單獨設置背景與圖片
- Android編程簡單實現(xiàn)ImageView點擊時背景圖修改的方法
- android imageview圖片居中技巧應用
- Android實現(xiàn)ImageView圖片雙擊放大及縮小
- Android使用控件ImageView加載圖片的方法
- Android UI之ImageView實現(xiàn)圖片旋轉和縮放
- Android手勢滑動實現(xiàn)ImageView縮放圖片大小
- Android開發(fā)中ImageLoder加載網絡圖片時將圖片設置為ImageView背景的方法
相關文章
Android4.X讀取SIM卡短信和聯(lián)系人相關類實例分析
這篇文章主要介紹了Android 4.X讀取SIM卡短信和聯(lián)系人相關類,以實例形式分析了Android 4.X讀取SIM卡短信和聯(lián)系人的兩個相關類的功能、用法與注意事項,具有一定參考借鑒價值,需要的朋友可以參考下2015-10-10深入淺析Android手機衛(wèi)士保存密碼時進行md5加密
一般的手機沒有root權限,進不去data/data目錄,當手機刷機了后,擁有root權限,就可以進入data/data目錄,查看我們保存的密碼文件,因此我們需要對存入的密碼進行MD5加密,接下來通過本文給大家介紹Android手機衛(wèi)士保存密碼時進行md5加密,需要的朋友一起學習吧2016-04-04Android中使用Canvas繪制南丁格爾玫瑰圖(Nightingale rose diagram)
這篇文章主要介紹了Android中使用Canvas繪制南丁格爾玫瑰圖(Nightingale rose diagram),本文直接給出實現(xiàn)代碼和運行效果圖,需要的朋友可以參考下2015-03-03Android中ACTION_CANCEL的觸發(fā)機制與滑出子view的情況
這篇文章主要介紹了Android中ACTION_CANCEL的觸發(fā)機制與滑出子view的情況,本文給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2021-09-09