开发者

Android need help with nine-patch tool to stretch image horizontally

开发者 https://www.devze.com 2023-03-18 12:06 出处:网络
Can someone explain to me how to prepare a PNG image as a nine-patch for Android?I don\'t believe that the Android link (http://developer.android.com/guide/developing/tools/draw9patch.html) is helpful

Can someone explain to me how to prepare a PNG image as a nine-patch for Android? I don't believe that the Android link (http://developer.android.com/guide/developing/tools/draw9patch.html) is helpful enough. Here is my image that I want to stretch horizontally:

Android need help with nine-patch tool to stretch image horizontally

When I add the image to the nine-patch tool, there is really no option for me to draw any black lines. So then I added blank pixels around the image, and added black lines, which generated the following nine-patch:

Android need help with nine-patch tool to stretch image horizontally

If somebody could explain to me, or perhaps show me how to prep开发者_如何学Care my PNG to stretch horizontally, I'd really appreciate it...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号