title: Background image not filling layout and taking extra space above and below
body: <p><a href="https://i.stack.imgur.com/PkMQS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PkMQS.png" alt="Linear Layout with white card as background"></a></p>
  
  <p>The blue bordered part is a <code>LinearLayout</code> and the white card part is the background image I have used. The background image is not filling the layout.</p>
  
  <p>I have tried keeping an <code>ImageView</code> in a <code>FrameLayout</code> and making scale type as centerCrop but even that didn't work. I can use a <code>CardView</code> instead but I want this type of shadow as shown in the picture which I couldn't achieve with attributes of <code>CardView</code>. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;LinearLayout
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:background="@drawable/squared_background_shadow"&gt;
  &lt;/LinearLayout&gt;
  </code></pre>