Search code examples
androidtextviewalignment

How to Align the Text Properly in TextView?


I have a Textview in which i need to show large information in proper format.How can i achieve it?

I want to display like this:

Title  :       Some Title.
Date   :       Date

More Info about the title.
......
......

Contact :      Contact Details.

Solution

  • Well you have to do it by calculating the space between the options.

    The better way

    Use a Webview make an html string with contents aligned properly using html formattings and load webview and display it.