I have string in resources I want to do justification on that so that it could look good and easy to read. But Sadly Android does not support the justification straight away. To do some justification I am doing some researches and found the way to use the Html.fromHtml to justify the text.
But sadly I do not know How to use it. To me justification is not working I am setting it as follows
myTextView.setText(Html.fromHtml("<h2 align=right>Android</h2><br><p \"align=justify\">Sdasndakdnsakdnsakdnsandkasndasda adabdkjasbdkasj sadaskjdnksajdn asdnsadknas" +
"asjkdbaskdja asodnsakjdnas asdjasndsad alsdnasldnasl ansd dj jasdoa nqowdjnl hjd l dpajpa ajop p adpjasiojdiosjaodj a sjdas nd op apjpdja apjdoajpj aldoapjdap pajdpajdpajpd " +
"asdasidnsalkdnsalkdaskldsalkdnlksadm" +
"asdksandlksadnlsakmdlskadksald" +
"asdnkasndlksandlksamdlsakdna" +
"asdlkasndlkasndksnakldnsa" +
"asdansldknsalkdnsalkdn</p>"));
i just put the demo text. No matter what Ever I put into the tag it alwasy comes with the left alignment.
Right now you can see I have used align=justify
So please kindly guide me How can justify my text.
Note : I do not want to center align my text . I just want to use the Justification