[android-developers] Re: horizentally center aligned

2010-01-18 Thread NoraBora
I guess this is because of the LinearLayout's android:layout_width="fill_parent". If width is fill_parent, it can't be horizontally centered. You can see that if you give background color to the LinearLayout. Try android:layout_width="wrap_content". Or change LinearLayout's android:layout_gravity=

Re: [android-developers] Re: horizentally center aligned

2010-01-15 Thread Sunny Aujla
What happens when the orientation changes? It looks fine to me, should stay center aligned. On Fri, Jan 15, 2010 at 10:33 AM, Kumar Bibek wrote: > This is ok. Doesn't this work?? > > Kumar Bibek > > On Jan 15, 2:19 pm, Jags wrote: > > i have this layout > > > > > android:orientation="

[android-developers] Re: horizentally center aligned

2010-01-15 Thread Kumar Bibek
This is ok. Doesn't this work?? Kumar Bibek On Jan 15, 2:19 pm, Jags wrote: > i have this layout > >         android:orientation="horizontal" >                 android:layout_height="wrap_content" > android:layout_width="fill_parent" >                 android:layout_gravity="center_horizontal">