[問題] 9 patch 失敗
各位大大好
今天我試了 9 patch
我將 9 patch 的圖設為背景
結果如
圖一 http://ppt.cc/yiNG (實際情況: 9 patch 用的左上pixel未消失)
但是理想中應該是要跟圖二一樣
圖二 http://ppt.cc/wl9a (理想狀況:程式中 Graphical layout 的預覽)
所以我失敗了QQ|||
我是用<sdk>\tool\Draw9Patch.bat 的程式製作圖片的
可以請教發生了甚麼問題嗎? T_T
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.163.3.187
※ 編輯: issuemylove 來自: 118.163.3.187 (12/04 18:20)
→
12/04 21:43, , 1F
12/04 21:43, 1F
→
12/05 01:39, , 2F
12/05 01:39, 2F
→
12/05 01:39, , 3F
12/05 01:39, 3F
→
12/05 01:40, , 4F
12/05 01:40, 4F
→
12/05 01:40, , 5F
12/05 01:40, 5F
→
12/05 13:09, , 6F
12/05 13:09, 6F
以下是 摘自 android Draw 9-patch 官方網站原文
http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch
The border is used to define the stretchable and static areas of the image.
You indicate a stretchable section by drawing one (or more) 1-pixel-wide
black line(s) in the left and top part of the border (the other border pixels
should be fully transparent or white). You can have as many stretchable
sections as you want: their relative size stays the same, so the largest
sections always remain the largest.
我看內容它說多段是ok的呀QQ? 還是我對網站內容有誤會或是漏看的地方?
我再回去看了兩遍 http://developer.android.com/tools/help/draw9patch.html
文中似乎沒有看到有寫甚麼特別限制的地方QQ||| 不然就是我漏看orz
※ 編輯: issuemylove 來自: 118.163.3.187 (12/05 13:55)
→
12/05 14:05, , 7F
12/05 14:05, 7F
→
12/05 14:05, , 8F
12/05 14:05, 8F
推
12/06 14:17, , 9F
12/06 14:17, 9F
→
12/06 14:18, , 10F
12/06 14:18, 10F
→
12/06 14:19, , 11F
12/06 14:19, 11F
AndroidDev 近期熱門文章
PTT數位生活區 即時熱門文章