机器人 - 手动设置ninepatch大小 [英] android - Manually set ninepatch size

查看:134
本文介绍了机器人 - 手动设置ninepatch大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何手动设置NinePatch的固定部位的大小,Android的?

How can I manually set the size of the fixed parts of a NinePatch in Android?

我要调整未拉伸部分

推荐答案

文档

该NinePatch类允许在九个部分绘制一个位图。四个角是未缩放;四边被缩放在一根轴上,中间是在两个轴上进​​行缩放。

The NinePatch class permits drawing a bitmap in nine sections. The four corners are unscaled; the four edges are scaled in one axis, and the middle is scaled in both axes.

的边缘不旨在被任意缩放。这不是9补丁旨在做。

The edges are not intended to be arbitrarily scaled. This is not what nine patches are designed to do.

这篇关于机器人 - 手动设置ninepatch大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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