title: How to scale size and place image in center of Splash Screen of Android App
body: <p>My exact purpose is to reduce the size (height and width) of the image slightly (as wrap_content size is too big) and to place it in centre of Splash Screen. But no matter what I do, it just doesn't get in center until I use wrap_content or match_parent. Here's the code I am using.</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.yoalfaaz.yoalfaaz.SplashScreen"&gt;
  
      &lt;ImageView
          android:layout_width="300dp"
          android:layout_height="300dp"
          tools:layout_editor_absoluteY="25dp"
          tools:layout_editor_absoluteX="25dp"
          android:layout_centerHorizontal="true"
          android:layout_centerVertical="true"
          android:src="@drawable/ss" /&gt;
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>What would be the best way to go for it since setting a prefix size as I did would not let is adjust to bigger screens (tablets mostly). </p>