title: Why is my view stretching over list view boundaries?
body: <p>The problem consists of, in this case, two views going out of planed boundaries of a list view. First of all the whole list view should be under the text view:</p>
  <pre><code>app:layout_constraintTop_toBottomOf=&quot;@+id/tptp&quot; 
  </code></pre>
  <p>Second, right side of the view stretches out of screen even though its width is set to match_parent.</p>
  <pre><code>android:layout_width=&quot;match_parent&quot;
  </code></pre>
  <p>My Activity:</p>
  <pre><code>&lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      tools:context=&quot;.ListOfChatsActivity&quot;&gt;
  
      &lt;de.hdodenhof.circleimageview.CircleImageView
          android:id=&quot;@+id/picture&quot;
          android:layout_width=&quot;120dp&quot;
          android:layout_height=&quot;120dp&quot;
          app:layout_constraintBottom_toTopOf=&quot;@+id/guideline3&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot;
          android:src=&quot;@drawable/slika1&quot; /&gt;
  
      &lt;androidx.constraintlayout.widget.Guideline
          android:id=&quot;@+id/guideline3&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:orientation=&quot;horizontal&quot;
          app:layout_constraintGuide_begin=&quot;126dp&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/name&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_margin=&quot;15dp&quot;
          android:text=&quot;@string/name&quot;
          android:textColor=&quot;@color/logoBlue&quot;
          android:textSize=&quot;22sp&quot;
          app:layout_constraintEnd_toEndOf=&quot;@+id/picture&quot;
          app:layout_constraintStart_toStartOf=&quot;@+id/picture&quot;
          app:layout_constraintTop_toBottomOf=&quot;@+id/picture&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/email&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_margin=&quot;10dp&quot;
          android:text=&quot;@string/email&quot;
          android:textColor=&quot;@color/logoBlue&quot;
          android:textSize=&quot;18sp&quot;
          app:layout_constraintEnd_toEndOf=&quot;@+id/name&quot;
          app:layout_constraintStart_toStartOf=&quot;@+id/name&quot;
          app:layout_constraintTop_toBottomOf=&quot;@+id/name&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/phone&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginTop=&quot;10dp&quot;
          android:text=&quot;@string/phone&quot;
          android:textColor=&quot;@color/logoBlue&quot;
          android:textSize=&quot;18sp&quot;
          app:layout_constraintEnd_toEndOf=&quot;@+id/email&quot;
          app:layout_constraintStart_toStartOf=&quot;@+id/email&quot;
          app:layout_constraintTop_toBottomOf=&quot;@+id/email&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/tptp&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;41dp&quot;
          android:background=&quot;@color/logoBlue&quot;
          android:text=&quot;@string/contacts&quot;
          android:textAlignment=&quot;center&quot;
          android:textColor=&quot;#fff&quot;
          android:textSize=&quot;30sp&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;@+id/guideline3&quot; /&gt;
  
      &lt;ListView
          android:id=&quot;@+id/list&quot;
          android:layout_width=&quot;410dp&quot;
          android:layout_height=&quot;269dp&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintHorizontal_bias=&quot;0.0&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toBottomOf=&quot;@+id/tptp&quot;
          app:layout_constraintVertical_bias=&quot;1.0&quot; /&gt;
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  <p>And the View:</p>
  <pre><code>&lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:orientation=&quot;vertical&quot;
      android:background=&quot;@drawable/customborder&quot;&gt;
  
      &lt;TextView
          android:id=&quot;@+id/chatName&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:text=&quot;@string/name&quot;
          android:textAlignment=&quot;center&quot;
          android:textColor=&quot;@color/logoBlue&quot;
          android:textSize=&quot;22sp&quot;
          android:textStyle=&quot;bold&quot;
          android:layout_marginBottom=&quot;20dp&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot;
          android:gravity=&quot;center_horizontal&quot; /&gt;
  
  
      &lt;TextView
          android:id=&quot;@+id/textView6&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:text=&quot;@string/last_seen&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintStart_toStartOf=&quot;@+id/name&quot;
          app:layout_constraintTop_toBottomOf=&quot;@+id/chatName&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/date&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_margin=&quot;8dp&quot;
          android:layout_marginStart=&quot;8dp&quot;
          android:layout_marginLeft=&quot;8dp&quot;
          android:gravity=&quot;start&quot;
          android:text=&quot;@string/date&quot;
          app:layout_constraintBottom_toBottomOf=&quot;@+id/textView6&quot;
          app:layout_constraintStart_toEndOf=&quot;@+id/textView6&quot;
          app:layout_constraintTop_toTopOf=&quot;@+id/textView6&quot; /&gt;
  
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  <p>Picture of the error:</p>
  <p><a href="https://i.stack.imgur.com/PbiDW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PbiDW.png" alt="enter image description here" /></a></p>
  <p>Most likely its a simple mistake since i never got an similar error, but i still can't seem to find it.</p>