title: Linear Layout width and height cannot be set to match parent
body: <p>i am developing a med reminder app
  I have linear layout with two text fields and cannot set my Layout width and height to match parent it gets adjusting to my code</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:tools="http://schemas.android.com/tools"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.example.nsk.medapp.MainActivity"&gt;
  
      &lt;LinearLayout
          android:layout_width="368dp"
          android:layout_height="495dp"
          android:orientation="vertical"&gt;
  
          &lt;TextView
              android:gravity="center"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:text="Add Pills"
              android:textSize="50sp"
              android:textAlignment="center"
              android:layout_weight="1"/&gt;
  
          &lt;TextView
              android:gravity="center"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:text="Edit Pills"
              android:textSize="50sp"
              android:textAlignment="center"
              android:layout_weight="1"/&gt;
  
  &lt;/LinearLayout&gt;
  
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>