[android-developers] Re: how to center justify within a LinearLayout

2010-11-12 Thread Streets Of Boston
That won't layout the TextView in the center of the LinearLayout. Instead, it will layout the text in the center of the TextView. Visually, it looks the same though :) On Nov 12, 11:56 am, Kumar Bibek wrote: > Use android:gravity="center_horizontal" instead of layout_gravity > > On Fri, Nov 12,

Re: [android-developers] Re: how to center justify within a LinearLayout

2010-11-12 Thread Kumar Bibek
Use android:gravity="center_horizontal" instead of layout_gravity On Fri, Nov 12, 2010 at 10:24 PM, Streets Of Boston wrote: > Because your TextView's layout_width is set to fill_parent. > Do 'wrap_content' instead, just like your Button's layout_width. > > On Nov 12, 11:49 am, DulcetTone wrote

[android-developers] Re: how to center justify within a LinearLayout

2010-11-12 Thread Streets Of Boston
Because your TextView's layout_width is set to fill_parent. Do 'wrap_content' instead, just like your Button's layout_width. On Nov 12, 11:49 am, DulcetTone wrote: > The following code incorrectly (in my view) places the text left- > justified, and the button is in the center, horizontally.  Why