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=
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="
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">
3 matches
Mail list logo