[問題] LinearLayout backgroud 無法填滿

看板AndroidDev作者 (阿良)時間13年前 (2011/08/02 10:04), 編輯推噓2(203)
留言5則, 4人參與, 最新討論串1/1
各位大家好, 目前在做圖形Layout時,設定LinearLayout android:background屬性 發現圖形的邊框會是背景的圖片,尤其當是背景圖片反差很大時更為明顯 請問有啥屬性可以設定填滿的功能,我的android:layout_width與 android:layout_height都設定為fill_parent 感謝!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 113.196.128.238

08/02 12:46, , 1F
有點不太懂這句:圖形的邊框會是背景的圖片
08/02 12:46, 1F

08/02 13:31, , 2F
ex:圖片是800pxX480px, show出來為786x476(邊框為2px)
08/02 13:31, 2F

08/03 08:13, , 3F
margin?
08/03 08:13, 3F

08/03 18:39, , 4F
背景的圖片是 9-patch ?
08/03 18:39, 4F

08/04 11:40, , 5F
9 patch? 我是用800x480的png圖片
08/04 11:40, 5F
文章代碼(AID): #1EDrj0V5 (AndroidDev)