Hi Archana, This does work. Specify gravity as whatever, but If you don't specify the width of the text-view as fill_parent instead of wrap_content, the gravity property is meaningless.
So, first set the width as fill_parent, for horizontal gravity props, and height as fill_parent for vertical props. Note: It doesn't necessarily have to be fill_parent, but is should certainly not be wrap_content. Instead, you can specify a sp/dip value so that we get space around the text view for the gravity to work. Thanks, Kumar Bibek http://tech-droid.blogspot.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

