У меня сейчас 2 карты, одна под другой.Каждая карта содержит схему ограничений (и каждая содержит своего дочернего элемента).Эти 2 карты находятся внутри основного макета ограничения.Я положил вторую карту (называемую основной картой) ниже первой (называемой информационной картой).Проблема в том, что основная карта перекрывает информационную карту, и я не знаю почему.Ниже экрана: ![views overlapping](https://i.stack.imgur.com/SNBvh.png)
И это мой XML-файл об этих двух видах:
<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/constraintlayout_sendaudio_main"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/backgroundColor">
<android.support.v7.widget.CardView
android:id="@+id/cardview_sendaudio_info"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<android.support.constraint.ConstraintLayout
android:id="@+id/constraintlayout_sendaudio_info"
android:layout_width="match_parent"
android:layout_height="wrap_content">
.. Its child
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id="@+id/cardview_sendaudio_maincard"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/cardview_sendaudio_info">
<android.support.constraint.ConstraintLayout
android:id="@+id/constraintlayout_sendaudio_maincard"
android:layout_width="match_parent"
android:layout_height="wrap_content">
.. Its child
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>