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