9补丁图像width.How不调整来解决这个问题? [英] 9 patch images not resizing in width.How to fix this?

查看:143
本文介绍了9补丁图像width.How不调整来解决这个问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用9片图像在我application.I设置我的9片图像文字background.Now它在图像的高度only.Width调整仍然是same.How解决这一问题?

I am using 9 patch images in my application.I set my 9 patch image as text background.Now it is resizing in height only.Width of the image remains the same.How to fix this?

推荐答案

9补丁图像,标记的顶边和标记的左侧边缘是可扩展的边缘,但是标记的底边和显着的右边缘的,限制的内容的位置。

for 9-patch images, the marked-top-edge and the marked-left-edge are the extendable edges, however the marked-bottom-edge and the marked-right-edge are which limit the contents' position.

如果您要调整宽度,但标志着底边,也不顶边,9片图像不能是你想要的。

If you want to resize the width but marked the bottom-edge nor the top-edge, the 9-patch image can't be what you want.

这篇关于9补丁图像width.How不调整来解决这个问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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