I tried posting this a few hours ago and it didn't show up.  Here is
my attempt at a repost.

I want to center a TextView inside of a layout.  I've been playing
with the XML code below and can't get it to work?
Please help!


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
       android:orientation="horizontal"
       android:gravity="center"
       android:layout_width="fill_parent"
       android:layout_height="fill_parent" >

       <TextView
           android:id="@+id/txtMessage"
           android:layout_width="fill_parent"
           android:layout_height="fill_parent"
           android:gravity="center" />

</LinearLayout>

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

Reply via email to