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 <nithin.war...@gmail.com> 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, > > layout = new LinearLayout(this); > layout.setOrientation(LinearLayout.VERTICAL); > TevtView tv = new TextView(this); > tv.offsetLeftAndRight(50); > > but the textview is not moving either horizontally or vertically.. > > Any idea please.. > > Thanks > Nithin > > -- > 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 > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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