作者cutepuma (艾潼凯儿)
看板AndroidDev
标题[问题] 去背图档放上去後没去背效果
时间Sun Apr 22 17:56:13 2012
嗨,大家好
我想问的问题是
我在一个背景上面放上ImageButton(有去背的png档)
可是放上去执行的时候(实机)却没办法呈现去背的效果(会跑出白白的底色)
因为这样好丑...
请问一下,该如何解决呢?
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.173.165.118
1F:推 lazior:透明度问题吗?会不会是部分透明? 04/22 18:03
请问,部分透明的意思是?
因为这些图档不是我处理的,我把他放在ppt上面底图为黑色的投影片
如图1所示,这样应该不是部分透明吧?
2F:推 LaPass:副档名是png吗? 04/22 18:36
您好,第一张图是两个PNG档的按钮
http://imgur.com/ohDCF
而第二张图就是在实机上面的图(抱歉,有点糊)
http://ppt.cc/fz4u
两个按钮会旁边都会有类似灰色的底QQ
不知道怎麽办...
先谢谢各位大大
※ 编辑: cutepuma 来自: 218.173.165.118 (04/22 21:51)
3F:推 LaPass:请问低一个连结抓下来就是你放进去的图吗? 我看到的底色是 04/22 22:08
4F:→ LaPass:黑的耶..... 不是透明色 04/22 22:08
5F:→ cutepuma:黑黑的原因是因为我放在底色为黑色的PPT档里 04/22 22:30
6F:→ cutepuma:证明他是透明的~~ 04/22 22:31
7F:→ yauhh:可以贴一下layout的ImageButton段落吗? 04/22 22:45
不好意思 刚刚ptt一直登不进来
<ImageButton
android:id="@+id/ImageButton02"
android:layout_width="140dp"
android:layout_height="65dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="41dp"
android:src="@drawable/receiver1" />
<ImageButton
android:id="@+id/ImageButton01"
android:layout_width="140dp"
android:layout_height="65dp"
android:layout_above="@+id/ImageButton02"
android:layout_alignLeft="@+id/ImageButton02"
android:layout_marginBottom="41dp"
android:src="@drawable/sender1" />
麻烦大大检查一下哩...非常感谢~~
※ 编辑: cutepuma 来自: 218.173.161.55 (04/22 23:43)
8F:推 crazyma:android:background=@null or ="@null" 忘了是哪个 04/22 23:45
9F:→ cutepuma:是android:background=@null 解决了 非常感谢大大们 :) 04/23 00:42
10F:推 gpc:android:background="#00000000 04/24 14:47