No i set gravity to right but at that time everything is moving to right side. I want to align it from both left and right side.
On Dec 3, 5:20 pm, "Dexter's Brain" <coomar....@gmail.com> wrote: > I guess, you haven't set the Gravity > text1.setGravity(Gravity.RIGHT) > > This should work. Btw, any specific reason of not using xml? AFAIK > they are a lot better to manage, and after you get a hand, easier to > implement also. You can also get nice previews for your layout, before > even running your app. > > Thanks, > Kumar Bibekhttp://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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en