Home

Awesome

<h2> Android – How to display information with justify alignment? </h2>

I saw many developers asking questions on Stackoverflow for this problems. Here are some:

  1. <a title="http://stackoverflow.com/questions/1292575/android-textview-justify-text" href="http://stackoverflow.com/questions/1292575/android-textview-justify-text" target="_blank">Android TextView Justify Text</a>
  2. <a title="http://stackoverflow.com/questions/11922861/how-to-justify-text-on-a-textview-made-easy-android" href="http://stackoverflow.com/questions/11922861/how-to-justify-text-on-a-textview-made-easy-android" target="_blank">How to justify text on a TextView made easy- Android</a>
  3. <a title="http://stackoverflow.com/questions/4290877/justify-text-in-textview-android" href="http://stackoverflow.com/questions/4290877/justify-text-in-textview-android" target="_blank">Justify Text in TextView Android</a>

We can display justified information in WebView, as such there is no any property/attribute for justify alignment in WebView widget but we can use a simple trick. The Trick is to define html tags with justify alignment as belows:

<html><body style="text-align:justify"> YOUR DATA </body></Html>

<a href="http://www.technotalkative.com/android-how-to-display-information-with-justify-alignment/android-justify-text-2-2/" rel="attachment wp-att-3638" target="_blank"><img src="http://www.technotalkative.com/wp-content/uploads/2013/01/Android-justify-text-21-300x257.png" alt="Android justify text" width="300" height="257" class="size-medium wp-image-3638" /></a>

More at: http://www.technotalkative.com/android-how-to-display-information-with-justify-alignment/