title: Dividing a Layout
body: <p>I got the following activity</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fillViewport="true"
      android:background="@color/colorGray"
      tools:context=".ProductsActivity"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:orientation="vertical"
          app:layout_constraintBottom_toTopOf="@+id/navigation"
          app:layout_constraintTop_toTopOf="parent"&gt;&lt;/LinearLayout&gt;
  
      &lt;android.support.design.widget.BottomNavigationView
          android:id="@+id/navigation"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:background="?android:attr/windowBackground"
          app:itemIconTint="@drawable/btv_tab_item_foreground"
          app:itemTextColor="@drawable/btv_tab_item_foreground"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintRight_toRightOf="parent"
          app:menu="@menu/navigation" /&gt;
   &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>Inside my LinearLayout, I want to add let's say 6 textviews or buttons or whatever and i want their</p>
  
  <ul>
  <li>width equal to the parent's width</li>
  <li>height, equal to each other</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/cNauT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cNauT.png" alt="enter image description here"></a></p>
  
  <p>Something like the image above (the lines are not adjusted correctly cause they were drawn with MS Paint). But i think you got the point.</p>