如何调整文字字距Android中的TextView? [英] How to adjust text kerning in Android TextView?

查看:1220
本文介绍了如何调整文字字距Android中的TextView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法来调整字符之间的间距在A​​ndroid 的TextView ?我相信这是通常所谓的字符间距。

Is there a way to adjust the spacing between characters in an Android TextView? I believe this is typically called "kerning".

我知道了的android:textScaleX 属性,但COM presses人物连同间隔

I'm aware of the android:textScaleX attribute, but that compresses the characters along with the spacing.

推荐答案

的TextView AFAIK,你不能调整字距。您可以调整字距,如果你画上的文字画布自己使用的2D图形API。

AFAIK, you cannot adjust kerning in TextView. You may be able to adjust kerning if you draw the text on the Canvas yourself using the 2D graphics APIs.

这篇关于如何调整文字字距Android中的TextView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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