title: Rounded rectangle image selector shape is not showing properly in lolliop
body: <p>I am trying to put selector on image which is rectangle it's working fine above lollipop but not in lollipop and lower version of it.</p>
  
  <p>i used cardview with two images one with imageselector and one actual image.</p>
  
  <p>anyone can guide me why it's not working properly!  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
          &lt;item&gt;
              &lt;shape android:tint="@color/transparent"&gt;
                  &lt;solid android:color="@android:color/transparent" /&gt;
                  &lt;stroke
                      android:width="3dp"
                      android:color="@color/black" /&gt;
  
                  &lt;corners
                      android:bottomLeftRadius="20dp"
                      android:bottomRightRadius="20dp"
                      android:topLeftRadius="20dp"
                      android:topRightRadius="20dp" /&gt;
              &lt;/shape&gt;
          &lt;/item&gt;
          &lt;item
              android:bottom="2dp"
              android:left="2dp"
              android:right="2dp"
              android:top="2dp"&gt;
              &lt;shape android:tint="@color/transparent"&gt;
                  &lt;solid android:color="@android:color/transparent" /&gt;
                  &lt;stroke
                      android:width="2dp"
                      android:color="@color/white" /&gt;
  
                  &lt;corners
                      android:bottomLeftRadius="20dp"
                      android:bottomRightRadius="20dp"
                      android:topLeftRadius="20dp"
                      android:topRightRadius="20dp" /&gt;
              &lt;/shape&gt;
          &lt;/item&gt;
      &lt;/layer-list&gt;
  
  
  
  
  
  &lt;android.support.v7.widget.CardView
                  android:id="@+id/image_selector_item_card_view"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  app:cardCornerRadius="20dp"
                  app:layout_constraintStart_toStartOf="parent"
                  app:layout_constraintTop_toTopOf="parent"
                  android:layout_margin="2dp"
                  android:clipToPadding="true"&gt;
                  &lt;ImageView
                      android:id="@+id/image_selector_item_image_view"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:scaleType="centerCrop"/&gt;
                  &lt;ImageView
                      android:id="@+id/border_selected"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:src="@drawable/image_selector_selected_border"/&gt;
              &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>
  
  <p>Expected: 
  <a href="https://i.stack.imgur.com/nwe1j.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nwe1j.jpg" alt="enter image description here"></a></p>
  
  <p>In Lollipop: 
  <a href="https://i.stack.imgur.com/sgj2H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sgj2H.png" alt="enter image description here"></a></p>