Use android:gravity="center"

On Thu, Aug 21, 2008 at 10:36 AM, RPO <[EMAIL PROTECTED]> wrote:
>
> This code fragment no longer works in the 0.9 SDK:
>      TextView label;
>      label.setAlignment(Alignment.ALIGN_CENTER);
>
> So how do I center text within a TextView?
>
> Thanks!
> Bob O'Hara
> >
>



-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to