作者:
darkk6 (Mr. Pan)
2017-04-10 12:22:40大家好,最近在撰寫 App 的時候,需要製作一個 LinearLayout
的 Divider 圖片,寬度的部分越小越好,但高度的部分不一定
且需要特殊漸層和透明,所以決定使用 9-Patch 來做
但似乎做出來的檔案一放入 drawable 裡面, AS 就會 Build Fail
Error:Some file crunching failed, see logs for details
檔案製作是透過 Android Asset Studio 製作
( https://romannurik.github.io/AndroidAssetStudio/index.html )
因為之前也有遇過,但調整圖片大小後就正常了。
可是這次的圖片大小不方便調整..
主要想請問,製作 9-Patch 有沒有甚麼限制呢? 感謝~