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 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

Reply via email to