Re: [android-developers] offsetLeftAndRight() not working

2009-11-11 Thread Romain Guy
You must call this *after* a layout. Also, this will be reset by the next layout pass. On Wed, Nov 11, 2009 at 11:34 PM, Nithin wrote: > Hi, > > I created textview in java and trying  offsetLeftAndRight(int), but > the textview is not moving at all. I am using linear layout. > > the code is, > >

[android-developers] offsetLeftAndRight() not working

2009-11-11 Thread Nithin
Hi, I created textview in java and trying offsetLeftAndRight(int), but the textview is not moving at all. I am using linear layout. the code is, layout = new LinearLayout(this); layout.setOrientation(LinearLayout.VERTICAL); TevtView tv = new TextView(this); tv.offsetLeftAndRight(50); but the t