Android studio图片ERROR: 9-patch image xx .9.png malformed

Android studio 图片错误  9-patch image error in Android


ERROR: 9-patch image xx .9.png malformed


1) 异常:



AAPT err(1118615418): ERROR: 9-patch image icon_item_bottom_line.9.png malformed
No marked region found along edge.
Found along left edge

Crunrhing Cruncher icon_item_bottom_line.9.png failed see logs 

2) 原因:



错误信息 : No marked region found along edge.    ( AAPT 工具无法确认 9-patch 图片中的拉伸区域 )

因为制作该 android 9-patch 图片 ( 如上图 ) 

图片当时只标记了纵向拉伸 ( 左侧 ) 区域  ,  没有标记横向拉伸 上方 ) 区域 ,

因此 AAPT 无法确认 9-patch 图片当中的拉伸区域 。


9-patch  图片( .9.png  )  的图片如要生效 , 需有横向与纵向沿着边缘标记区域  ( left & top )  

相关 9-patch制作参考:

http://www.cnblogs.com/loulijun/archive/2011/12/22/2298087.html


相关文章 :

http://stackoverflow.com/questions/4280398/9-patch-image-error-in-android

http://stackoverflow.com/questions/3733471/android-9-patch-png-what-if-i-need-smth-like-a-11-patch-png


祝大家每日精进

[java]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. //  ┏┓   ┏┓  
  2. //┏┛┻━━━┛┻┓  
  3. //┃       ┃  
  4. //┃   ━   ┃  
  5. //┃ ┳┛ ┗┳ ┃  
  6. //┃       ┃  
  7. //┃   ┻   ┃  
  8. //┃       ┃  
  9. //┗━┓   ┏━┛  
  10. //   ┃   ┃   神兽保佑  
  11. //   ┃   ┃   代码无BUG!  
  12. //   ┃   ┗━━━┓  
  13. //   ┃       ┣┓  
  14. //   ┃       ┏┛  
  15. //   ┗┓┓┏━┳┓┏┛  
  16. //     ┃┫┫ ┃┫┫  
  17. //     ┗┻┛ ┗┻┛  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值