How to do textview justification

Put your problem here if it does not fit any of the other categories.

How to do textview justification

Postby Archana » Thu Dec 03, 2009 7:55 am

Hi,
How can we implement textview justification.? i tried using Set gravity


"text1.setGravity(Gravity.CENTER_VERTICAL
// | Gravity.CENTER_HORIZONTAL);"

but its not working.Is justification possible in android?
Archana
Archana
Experienced Developer
Experienced Developer
 
Posts: 53
Joined: Thu Feb 28, 2008 12:00 pm
Location: Bangalore

Top

Postby wiederke » Thu Dec 03, 2009 3:37 pm

Hi,

gravity is working on Android. Checkout if you textview is filling up the whole space, because if your textview just wraps the content. You don't see any effect of gravity. The hierarchyviewer is very useful to track the size of views.


Torsten
wiederke
Experienced Developer
Experienced Developer
 
Posts: 72
Joined: Mon Mar 02, 2009 6:46 pm
Location: Germany

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 17 guests