Android(安卓)studio图片ERROR: 9-patch image xx .9.png malformed
16lz
2021-12-04
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.pngmalformed 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
祝大家每日精进
// ┏┓ ┏┓//┏┛┻━━━┛┻┓//┃ ┃//┃ ━ ┃//┃ ┳┛ ┗┳ ┃//┃ ┃//┃ ┻ ┃//┃ ┃//┗━┓ ┏━┛// ┃ ┃ 神兽保佑// ┃ ┃ 代码无BUG!// ┃ ┗━━━┓// ┃ ┣┓// ┃ ┏┛// ┗┓┓┏━┳┓┏┛// ┃┫┫ ┃┫┫// ┗┻┛ ┗┻┛
更多相关文章
- Android(安卓)异步加载图片
- android手机中图片的拖拉及浏览功能
- Android(安卓)RelativeLayout布局详解
- Android有用代码片断(六)
- android 处理图片工具
- Android之简单的拍照功能
- android ImageView 显示本地图片
- Android(安卓)圆角图片
- Android中xml文件中设置背景颜色、图片