title: How do I center an image with no stretching on my Android XML layout Splash screen
body: <p>Here's my code. It's stretching my image to the width of the screen. I just want it centered with no stretching. What am I getting wrong here?</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
       &gt;
  
      &lt;ImageView
          android:id="@+id/splash"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:layout_centerHorizontal="true"
          android:layout_alignParentLeft="true"
          android:layout_alignParentTop="true"         
          android:background="#FFFFFF"
          android:src="@drawable/splash_screenhdpi" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>