I want to align text in My TextView
like this
and my current appearance of textView
is like
How can I achieve text layout
without using Webview
I want to align text in My TextView
like this
and my current appearance of textView
is like
How can I achieve text layout
without using Webview
TextView
in Android O offers full justification (new typographic alignment) itself.
You just need to do this,
textView.setJustificationMode(JUSTIFICATION_MODE_INTER_WORD);
default is JUSTIFICATION_MODE_NONE
You can use:
https://github.com/bluejamesbond/TextJustify-Android
Install Just add to your build.gradle
dependencies {
compile 'com.github.bluejamesbond:textjustify-android:2.1.6'
}
or
use : https://github.com/Saleh-Hassan/RTL-TextJustify-Android
Example: