-2

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?

Vijaya
  • 101
  • 2
  • 13
  • 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 Answers2

0

Android not supports full justification

but check all answer of this link and this link.

Community
  • 1
  • 1
Dhaval Parmar
  • 18,812
  • 8
  • 82
  • 177
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