【发布时间】:2017-10-26 09:53:12
【问题描述】:
【问题讨论】:
-
显示你的xml文件@ShoaibAnwar
-
结帐this link,它可能会帮助你。
标签: android android-layout text textview android-xml
【问题讨论】:
标签: android android-layout text textview android-xml
Android O 中的TextView 本身提供了完整的理由(新的排版对齐方式)。
你只需要这样做,
textView.setJustificationMode(JUSTIFICATION_MODE_INTER_WORD);
default is JUSTIFICATION_MODE_NONE
【讨论】:
你可以使用:
https://github.com/bluejamesbond/TextJustify-Android
安装只需添加到您的 build.gradle
dependencies {
compile 'com.github.bluejamesbond:textjustify-android:2.1.6'
}
或
使用:https://github.com/Saleh-Hassan/RTL-TextJustify-Android
例子:
【讨论】: