Olá
Estou utilizando ConstraintLayout e não estou conseguindo manter o efeito do radius do cardview porque o ConstraintLayout da header fica encima. Segue código da activity:
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
app:cardElevation="10dp"
app:cardUseCompatPadding="true"
app:cardCornerRadius="8dp">
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/detalhes_prova_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#00A8EC"
android:padding="10dp">
<TextView
android:id="@+id/detalhes_prova_materia"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="Matéria"
android:textColor="#fff"
android:textSize="20sp"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/detalhes_prova_data"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="10/10/2017"
android:textColor="#fff"
android:textSize="20sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>
<ListView
android:id="@+id/detalhes_prova_topicos"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/detalhes_prova_header"></ListView>
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>