-1

To justify text I have taked help from this link please give me some way how to justify text in android textView within xml ?? thanx in advance

Community
  • 1
  • 1
Hanan
  • 11
  • 3

1 Answers1

2

Justifying text inside a TextView is not actually fully supported in Android currently. You can see this from the duplicate question here:

Android TextView Justify Text

There are some hack fixes to this, such as making the TextView a WebView and justifying the text with HTML but I would not recommend this. If it is essential for you to justify the text then I would suggest importing an external library that handles this.

Community
  • 1
  • 1
edwoollard
  • 12,245
  • 6
  • 43
  • 74