title: These constraints are not changing together
body: <p>I am quite new to the world of Android app development and have been stuck for days on constraining these together. This is the required output:
  <a href="https://i.stack.imgur.com/av9Yx.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>But this is my output:
  <a href="https://i.stack.imgur.com/5c7Br.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>It would be highly appreciated if anyone could help me understand where I have gone wrong.</p>
  <p>This is the code snippet:</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;.AdditemActivity&quot;&gt;
  
      &lt;TextView
          android:id=&quot;@+id/add_item_title_text_view&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          app:layout_constraintBottom_toTopOf=&quot;@id/item_name_edit_text&quot;
          app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
          app:layout_constraintRight_toRightOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot;
          android:gravity=&quot;center&quot;
          android:text=&quot;@string/welcome_message&quot;
          android:textSize=&quot;25sp&quot;
          android:textStyle=&quot;bold&quot;
          android:textColor=&quot;@color/black&quot; /&gt;
  
      &lt;EditText
          android:id=&quot;@+id/item_name_edit_text&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:inputType=&quot;textPersonName&quot;
          android:text=&quot;@string/name&quot;
          app:layout_constraintBottom_toTopOf=&quot;@id/is_urgent_linear_layout&quot;
          app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
          app:layout_constraintRight_toRightOf=&quot;parent&quot;
          app:layout_constrantTop_toBottomOf=&quot;@+id/add_item_title_text_view&quot;
          android:hint=&quot;@string/add_item_edit_text_hint&quot;
          android:textSize=&quot;20sp&quot;
          android:autofillHints=&quot;hi&quot; /&gt;
  
      &lt;LinearLayout
          android:id=&quot;@+id/is_urgent_linear_layout&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          app:layout_constraintBottom_toTopOf=&quot;@+id/save_item_add_button&quot;
          app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
          app:layout_constraintRight_toRightOf=&quot;parent&quot;
          app:layout_constraintTop_toBottomOf=&quot;@id/item_name_edit_text&quot;&gt;
  
          &lt;TextView
              android:id=&quot;@+id/is_urgent_text_view&quot;
              android:layout_width=&quot;wrap_content&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:text=&quot;@string/is_item_urgent_text&quot;
              android:layout_marginEnd=&quot;40dp&quot;
              android:textSize=&quot;20sp&quot;
              android:layout_weight=&quot;1&quot;
              android:textStyle=&quot;bold&quot;
              android:textColor=&quot;@color/black&quot;/&gt;
  
  
          &lt;CheckBox
              android:id=&quot;@+id/is_urgent_checkbox&quot;
              android:layout_width=&quot;wrap_content&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_weight=&quot;1&quot;/&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;Button
          android:id=&quot;@+id/save_item_add_button&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          app:layout_constraintBottom_toTopOf=&quot;@id/add_item_cancel_button&quot;
          app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
          app:layout_constraintRight_toRightOf=&quot;parent&quot;
          app:layout_constraintTop_toBottomOf=&quot;@id/is_urgent_linear_layout&quot;
          android:text=&quot;@string/save_item_text&quot;
          android:textSize=&quot;20sp&quot;
          android:gravity=&quot;center&quot;
          android:textStyle=&quot;bold&quot;
          android:background=&quot;@color/black&quot;
          android:textColor=&quot;@color/purple_500&quot;
          android:padding=&quot;10dp&quot;/&gt;
  
      &lt;Button
          android:id=&quot;@+id/add_item_cancel_button&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
          app:layout_constraintRight_toRightOf=&quot;parent&quot;
          app:layout_constraintTop_toBottomOf=&quot;@id/save_item_add_button&quot;
          android:text=&quot;@string/cancel_text&quot;
          android:textSize=&quot;20sp&quot;
          android:gravity=&quot;center&quot;
          android:textStyle=&quot;bold&quot;
          android:background=&quot;@color/black&quot;
          android:textColor=&quot;@color/purple_500&quot;
          android:padding=&quot;10dp&quot;/&gt;
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  <p>Thank you for viewing and have a great day!</p>