title: How to divide screen two equal part vertically in ConstraintLayout in android
body: <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &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;match_parent&quot;
      android:gravity=&quot;bottom&quot;&gt;
  
  
      &lt;ImageView
          android:id=&quot;@+id/imageView4&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginStart=&quot;@dimen/dp_16&quot;
          android:layout_marginTop=&quot;@dimen/dp_12&quot;
          android:src=&quot;@drawable/ic_top_log&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;
  
      &lt;ImageView
          android:id=&quot;@+id/imageView5&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginStart=&quot;@dimen/dp_4&quot;
          android:src=&quot;@drawable/ic_top_log_p&quot;
          app:layout_constraintBottom_toBottomOf=&quot;@+id/imageView4&quot;
          app:layout_constraintStart_toEndOf=&quot;@+id/imageView4&quot;
          app:layout_constraintTop_toTopOf=&quot;@+id/imageView4&quot; /&gt;
  
      &lt;androidx.constraintlayout.widget.ConstraintLayout
          android:id=&quot;@+id/textView9&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&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_toBottomOf=&quot;@+id/imageView4&quot;&gt;
        // this part we have to divide in two part 
  
      &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  <p>This my code i want to divide in two part equal part i have tired but it not showing in two part please help me how to divide ConstraintLayout in to two equal part vertically .</p>