Android studio图片ERROR: 9-patch image xx .9.png malformed
16lz
2021-01-23
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 之 ImageSwitch图片转换器
- Android下图片或按钮等可拖动到任意位置的效果实现源码
- android 处理图片工具
- android ImageView 显示本地图片
- Android 圆角图片
- android 自定义checkbox大小和图片[已验证]
- android 图片设置圆角
- Android ------ 拍照相册选择图片 剪裁图片
- 改变ToggleButton的图片