Thanks.  It worked.

I did this:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android";
    android:layout_width="match_parent"
    android:layout_height="match_parent" 
    
    >

    <ListView
        android:id="@+id/new_devices"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
         />

</RelativeLayout>

On Thursday, June 21, 2012 3:45:12 PM UTC-5, Tommy wrote:
>
> Well if you are using a RelativeLayout you can do 
> android:layout_centerInParent=”true”
>
>  
>
> *From:* [email protected] [mailto:
> [email protected]] *On Behalf Of *bob
> *Sent:* Thursday, June 21, 2012 4:36 PM
> *To:* [email protected]
> *Subject:* [android-developers] centering
>
>  
>
> This is probably an easy one, but I'm stumped.  What is the best way to 
> position a View object in the exact center of the screen?
>
>  
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" 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-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to