[問題] button背景不要透明
我在listview中放了一個button
layout配置大約如下,有背景圖
<linearlayout android:background="@drawable/bg">
<listview/>
</linearlayout>
出來的結果如下
http://min.us/lSiCDc5zmmunM
button是半透明,可以看到背景的圖。
我試過設
<Button android:alpha="1"
..
android:alpha="100"
android:alpha="255"
都沒用,請問要怎麼做,才不會半透明?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 1.160.51.1
※ 編輯: tsaiminghan 來自: 1.160.51.1 (12/04 20:45)
→
12/04 21:40, , 1F
12/04 21:40, 1F
→
12/04 21:50, , 2F
12/04 21:50, 2F
試了之後這方法好像不行。
它的確會使得button變得不透明,但是點擊時也變得沒有藍框。
※ 編輯: tsaiminghan 來自: 1.160.51.1 (12/04 22:13)
→
12/04 22:28, , 3F
12/04 22:28, 3F
→
12/04 23:44, , 4F
12/04 23:44, 4F
AndroidDev 近期熱門文章
PTT數位生活區 即時熱門文章