【问题标题】:Could we apply text align justify in titanium appcelerator我们可以在钛加速器中应用文本对齐对齐吗
【发布时间】:2015-05-14 05:32:49
【问题描述】:

我想将 justify 属性应用于钛 Appcelerator 中的文本。有什么方法可以应用吗?

【问题讨论】:

    标签: alignment titanium label appcelerator justify


    【解决方案1】:

    Label 具有属性“textAlign”,但唯一支持的值是 “left”、“center”、“right”和TEXT_ALIGNMENT_constants

    不支持“对齐”。

    您还可以查看以下主题以获得更详细的答案:

    编辑:如果您想在 Labels 上使用 html 类型格式,您可以使用以下属性:

    • 对于 android 使用 html 属性。

    • 对于 ios 使用 attributedString 属性。更多关于ios格式here的细节。

    【讨论】:

      猜你喜欢
      • 2017-01-05
      • 2011-02-19
      • 2011-12-26
      • 2020-07-12
      • 2020-01-19
      • 2014-07-24
      • 2014-04-11
      • 2011-08-25
      • 2020-04-13
      相关资源
      最近更新 更多