ya i want it to be in java,Becoz i am fetching some content from server and itrating so if i use xml it wont display content properly.But now everything coming fine except justification.
On Dec 3, 5:26 pm, Archana <[email protected]> wrote: > 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" <[email protected]> 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 [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

