I have a `CardView` with rounded corners, I want to have an `ImageView` at the top like shown in the example taken from the material design guidelines below.

![components_cards8.png](https://i.stack.imgur.com/R4ap7m.png)

```
<android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto"
     android:id="@+id/card_view"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     card_view:cardCornerRadius="4dp">

     <!-- ... --> 
 </android.support.v7.widget.CardView>

```

Then inside the `CardView` I have this `ImageView`

```
<ImageView
    android:id="@+id/imageView"
    android:layout_width="fill_parent"
    android:layout_height="150dp"
    android:layout_alignParentLeft="true"
    android:layout_alignParentStart="true"
    android:layout_alignParentTop="true"
    android:scaleType="centerCrop"
    android:src="@drawable/default_cover" />

```

If I have the `card_view:cardCornerRadius` set to `0dp` then the `ImageView` fits the card like how I want it to.

![image_1](https://i.stack.imgur.com/KzZRwm.png)

However, the [material design guidelines](http://www.google.co.uk/design/spec/components/cards.html#cards-usage) state that cards should have rounded corners, and not square corners.

The problem I have is when I set the `card_view:cardCornerRadius` to something other than `0dp`, e.g. `4dp`, then the following happens:

![image_2](https://i.stack.imgur.com/gg7kl.png)

As can be seen, the `ImageView` does not fit into the `CardView`.

My question is, how can I make this `ImageView` fit to the layout of the `CardView` when it has rounded corners.