How to justify text on a TextView made easy- Android

Posted by Juan on Stack Overflow See other posts from Stack Overflow or by Juan
Published on 2012-08-12T14:17:52Z Indexed on 2012/10/12 9:38 UTC
Read the original article Hit count: 193

I'm looking for a simple way to forget that I'm using a WebView to have justified text in my TextView. Has someone made a custom view for this? I'm well aware that I can do something like this:

 WebView view = new WebView(this);    
         view.loadData("my html with text justification","text/html","utf-8");

But it gets ugly when you want to set the size, the color or other common properties of the TextView, there must be a more convenient way of doing it.

© Stack Overflow or respective owner

Related posts about android

Related posts about webview