TextView 文本对齐

TextView text justification

我的项目中有一个显示非常大文本的 TextView。我想证明它并使用 android: justificationMode = "inter_word"。它在模拟器上运行良好,但在我的小米红米 4x 上不起作用。我怎样才能为我的 phone 证明文字的合理性?是否有任何其他方式来显示大的合理文本。文中也有\n来换行。

属性“justificationMode”仅适用于 android 运行 API 版本 26 或更高版本

Use this library to justify text on android running lower than API 26

您还可以使用 this 库,它在 GitHub 上拥有最多的星星,用于 android

中的文本对齐