Android Question Label Text Justify?

ronovar

Active Member
Licensed User
Longtime User
I have label that have test like on picture...my question is how can i justify text to be like on right picture? Default is left justify so i need to make it to justify from left to right so that text will look nice, like on right picture.

alignedvjustified.png
 

Semen Matusovskiy

Well-Known Member
Licensed User
Android began support in Oreo. textView.setJustificationMode(JUSTIFICATION_MODE_INTER_WORD);

Meanwhile WebView exactly supports "justify" since first Android releases.
 
Last edited:
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
Good library, but there is one important disadvantage - does not support CharSequence (CSBuilder).
Means - you can't use different fonts, text sizes, to insert images etc.

Android TextView (at least on paper) supports. But in fact there are no reasons to use new API until Google will change AppCompat to support justification in early releases.
 
Upvote 0
Top