Android:9补丁重复模式而不是拉伸 [英] Android: 9-patch repeat pattern instead of stretching

查看:69
本文介绍了Android:9补丁重复模式而不是拉伸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个9个补丁的图像文件,如下所示:

I have a 9-patch image file which looks like this:

当我使用它时,它看起来像这样:

When I use it it appears like this:

我真正想要实现的是位于中心的完整点(重复),而不是已拉伸.我希望有可能.

What I actually wanted to achieve is the complete dot in the center repeated instead of stretched. I hope that it's possible.

推荐答案

我认为无法使用9-Patch制作重复图案(仅延伸特定区域),也许您可​​以在官方文档

I think it's not possible using 9-Patch to make repeated patterns (only stretching certain area), perhaps you could find more about it in official documentation

这篇关于Android:9补丁重复模式而不是拉伸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆