Reputation: 989
Is it possible to justify the content in Android without using a WebView?
What I have come across after searching is that Android does not support full text-justification and it can be done only through WebView. Is there any other way of doing so?
Upvotes: 1
Views: 4482
Reputation: 2326
WebView
instead of TextView
textWebview.loadData("<p style=\"text-align: justify\">"+ " [YOUR TEXT] " +"</p>", "text/html", "UTF-8");
It defiantly works.
Thank you.
Upvotes: 4
Reputation: 101
Fully justification is not supported You can either use multiple textview or use library
Upvotes: 0
Reputation: 6925
Check this :
<TextView>
...
android:layout_gravity="center_vertical|right"
...
</TextView>
Upvotes: 0