my mistake. i had tried "center_Horizantal". i just changed it to
"center_horizontal"  and although i don't get an error it doesnt center the
tablelayout in the middle of the display.


On Sat, Dec 13, 2008 at 12:44 PM, Romain Guy <romain...@google.com> wrote:

>
> "center_horizontal" not "centerHorizontal" :)
>
> On Sat, Dec 13, 2008 at 9:42 PM, Josh Dobbs <joshdo...@gmail.com> wrote:
> > I did try that and i get the following error at design time...
> > Description Resource Path Location Type
> > ERROR Error: String types not allowed (at 'layout_gravity' with value
> > 'centerHorizontal'). main.xml  line 3 aapt Problem
> >
> >
> >
> > On Sat, Dec 13, 2008 at 8:37 AM, Mark Murphy <mmur...@commonsware.com>
> > wrote:
> >>
> >> Josh Dobbs wrote:
> >>  >     my view is comprised of a tablelayout. How can I set the table in
> >> the
> >>  >     center of the screen? by default it looks to be left alligned.
> >>
> >> Have you tried adding android:layout_gravity="centerHorizontal" to your
> >> TableLayout, to center it in the parent container?
> >>
> >> --
> >> Mark Murphy (a Commons Guy)
> >> http://commonsware.com
> >>
> >> Android Training on the Ranch! -- Mar 16-20, 2009
> >> http://www.bignerdranch.com/schedule.shtml
> >> >>
> >
>
>
>
> --
> Romain Guy
> www.curious-creature.org
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to