title: Position buttons to bottom on constraint layout
body: <p>I am trying to position two buttons to the bottom of a constraint layout. In the Design view in Android Studio, everything looks OK, but when I run the app in debug, the buttons look like they are aligned with the last fields at the top of the screen.  I have tried Guidelines and Barriers, but could not get the Barriers to work in my version of studio (3.0.1). If I try to alight the buttons with the top of the display, they disappear when I switch to landscape mode. Any suggestions, or should I just go with another type of layout on this issue?  Thanks</p>
  
  <p>My design image</p>
  
  <p><img src="https://i.stack.imgur.com/7oQy6.png" alt="My design image"></p>
  
  <p>My code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout
  android:id="@+id/location_detail"
  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:fitsSystemWindows="true"&gt;
  
  &lt;android.support.constraint.Guideline
      android:id="@+id/guideline"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:orientation="horizontal"
      app:layout_constraintGuide_begin="10dp"
      app:layout_constraintHeight_min="?attr/actionBarSize"
      app:layout_constraintTop_toTopOf="parent"/&gt;
  
  
  &lt;TextView
      android:id="@+id/location_name_title"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:labelFor="@+id/location_name"
      android:text="@string/location_name_title"
      app:layout_constraintBaseline_toBaselineOf="@+id/location_name"
      app:layout_constraintLeft_toRightOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/guideline"/&gt;
  
  &lt;EditText
      android:id="@+id/location_name"
      android:layout_width="0dp"
      android:layout_height="wrap_content"
      android:layout_marginTop="10dp"
      android:ems="13"
      android:inputType="textPersonName"
      app:layout_constraintLeft_toRightOf="@+id/guideline2"
      app:layout_constraintTop_toBottomOf="@+id/guideline"/&gt;
  
  &lt;TextView
      android:id="@+id/location_region_title"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="@string/location_region_title"
      app:layout_constraintBaseline_toBaselineOf="@+id/location_region"
      app:layout_constraintLeft_toRightOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/location_name_title"/&gt;
  
  &lt;TextView
      android:id="@+id/location_region"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginTop="8dp"
      android:text="@string/location_detail_region"
      app:layout_constraintLeft_toRightOf="@+id/guideline2"
      app:layout_constraintTop_toBottomOf="@+id/location_name"/&gt;
  
  &lt;TextView
      android:id="@+id/location_country_title"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="@string/location_country_title"
      app:layout_constraintBaseline_toBaselineOf="@+id/location_country"
      app:layout_constraintLeft_toRightOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/location_region_title"/&gt;
  
  &lt;TextView
      android:id="@+id/location_country"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginTop="8dp"
      android:text="@string/location_detail_country"
      app:layout_constraintLeft_toRightOf="@+id/guideline2"
      app:layout_constraintTop_toBottomOf="@+id/location_region"/&gt;
  
  &lt;TextView
      android:id="@+id/location_latitude_title"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="@string/location_detail_latitude"
      app:layout_constraintBaseline_toBaselineOf="@+id/location_latitude"
      app:layout_constraintLeft_toRightOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/location_country_title"/&gt;
  
  &lt;TextView
      android:id="@+id/location_latitude"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginTop="8dp"
      android:text="@string/location_latitude_title"
      app:layout_constraintLeft_toRightOf="@+id/guideline2"
      app:layout_constraintTop_toBottomOf="@+id/location_country"/&gt;
  
  &lt;TextView
      android:id="@+id/location_longitude_title"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="@string/location_longitude_title"
      app:layout_constraintBaseline_toBaselineOf="@+id/location_longitude"
      app:layout_constraintLeft_toRightOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/location_latitude_title"/&gt;
  
  &lt;TextView
      android:id="@+id/location_longitude"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginTop="8dp"
      android:text="@string/location_detail_longitude"
      app:layout_constraintLeft_toRightOf="@+id/guideline2"
      app:layout_constraintTop_toBottomOf="@+id/location_latitude"/&gt;
  
  &lt;android.support.constraint.Guideline
      android:id="@+id/guideline2"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:orientation="vertical"
      app:layout_constraintGuide_percent="0.27"/&gt;
  
  &lt;android.support.v7.widget.AppCompatButton
      android:id="@+id/delete_location_button"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center"
      android:layout_marginEnd="8dp"
      android:layout_marginStart="8dp"
      android:onClick="saveLocation"
      android:text="@string/location_delete_button"
      app:layout_constraintEnd_toStartOf="@+id/save_location_button"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintBottom_toBottomOf="parent" /&gt;
  
  
  &lt;android.support.v7.widget.AppCompatButton
      android:id="@+id/save_location_button"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center"
      android:layout_marginEnd="8dp"
      android:layout_marginStart="8dp"
      android:text="@string/location_save_button"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toEndOf="@+id/delete_location_button"
      app:layout_constraintBottom_toBottomOf="parent" /&gt;
  
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>Screen Shot of problem</p>
  
  <p><img src="https://i.stack.imgur.com/09pma.png" alt="Screen Shot of problem"></p>
  
  <p>Additional info about this screen.  There is a toast message that is briefly displayed.  Also if you wish to edit the Location Name, a soft keyboard should appear.</p>
  
  <p>I am testing on a Nexus 7 running Android 5.1.1, but behavior is the same when I run on Nexus 6P running 8.1.0.</p>