【发布时间】:2015-05-14 05:32:49
【问题描述】:
我想将 justify 属性应用于钛 Appcelerator 中的文本。有什么方法可以应用吗?
【问题讨论】:
标签: alignment titanium label appcelerator justify
我想将 justify 属性应用于钛 Appcelerator 中的文本。有什么方法可以应用吗?
【问题讨论】:
标签: alignment titanium label appcelerator justify
Label 具有属性“textAlign”,但唯一支持的值是 “left”、“center”、“right”和TEXT_ALIGNMENT_constants。
不支持“对齐”。
您还可以查看以下主题以获得更详细的答案:
编辑:如果您想在 Labels 上使用 html 类型格式,您可以使用以下属性:
对于 android 使用 html 属性。
对于 ios 使用 attributedString 属性。更多关于ios格式here的细节。
【讨论】: