In my application, I have an textview with many lines beside of product, but i need the data with proper appearance.Is it possible to have justified alignment dynamically?
Asked
Active
Viewed 608 times
-2
-
Do you mean in a single textview, you want to align multiple lines separately? – Kumar Bibek Apr 09 '13 at 06:23
-
Ya i have a single textview in that textview i have multiple lines, i want to justify that text properly. Now i am align the text either in right or left, center only but i want both side alignment that means justification.Thank you Kumar Bibek – Vijaya Apr 09 '13 at 06:29
2 Answers
0
this may helps you
TextView tv = new TextView(context);
tv.setWidth(45);
tv.setGravity(Gravity.RIGHT); // attempt at justifying text
tv.setMaxLines(1);
tv.setText("Hellow");
this.addView(tv);
but may Android not supports full justification.

Ankitkumar Makwana
- 3,475
- 3
- 19
- 45