[android-developers] Re: how centralize view in absolutelayout

2010-07-22 Thread claesh
Sure, another layout is the preferred way, but that was not the question at hand. Claes Huittinen - http://code.google.com/p/leapconfigurator/ On Jul 21, 11:23 am, Kostya Vasilyev wrote: > Or use something more reasonable - RelativeLayout. > > With it, you can still position some views at fixed

Re: [android-developers] Re: how centralize view in absolutelayout

2010-07-21 Thread Kostya Vasilyev
Or use something more reasonable - RelativeLayout. With it, you can still position some views at fixed positions using layout_marginLeft (etc) and position others at center, top, bottom, etc. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 21.07.2010 12:42 пользователь "claesh" написал: Yo

[android-developers] Re: how centralize view in absolutelayout

2010-07-21 Thread claesh
You'll need to calculate the x,y positions in code for the textview. You also need to listen in to changes in device orientation and re- calculate. On Jul 21, 6:45 am, CMF wrote: > i want to centralize the textview in the absolutelayout. > but there is not setgravity in absolutelayout > is there