[android-beginners] Re: How do you center a TextView inside a layout?
Well That will at least center the text, anyway. In most cases that should suffice. Is that what you were after? Thanks, -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Tue, Sep 8, 2009 at 10:01 PM, Justin Anderson wrote: > Use: android:gravity="center_horizontal" in your xml declaration of the > TextView > > Thanks, > -- > There are only 10 types of people in the world... > Those who know binary and those who don't. > -- > > > > On Mon, Sep 7, 2009 at 4:10 PM, Andrew Louth wrote: > >> >> I know its possible to center layouts easily using the TableLayout. >> >> You will find an example here: >> >> http://droidhut.com/solutions/centered-layouts >> >> >> >> Cheers, >> >> Andrew Louth >> >> >> >> > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-beginners] Re: How do you center a TextView inside a layout?
Use: android:gravity="center_horizontal" in your xml declaration of the TextView Thanks, -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Sep 7, 2009 at 4:10 PM, Andrew Louth wrote: > > I know its possible to center layouts easily using the TableLayout. > > You will find an example here: > > http://droidhut.com/solutions/centered-layouts > > > > Cheers, > > Andrew Louth > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-beginners] Re: How do you center a TextView inside a layout?
I know its possible to center layouts easily using the TableLayout. You will find an example here: http://droidhut.com/solutions/centered-layouts Cheers, Andrew Louth --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---