title: Android's ConstraintLayout - anchor a view to 2 guidelines
body: <p>Using <a href="https://developer.android.com/training/constraint-layout/index.html" rel="nofollow noreferrer">ConstraintLayout</a>, i'm trying to anchor a view to 2 <code>guidelines</code>, as you can see in the blueprint in the attached screenshot.  </p>
  
  <p><a href="https://i.stack.imgur.com/63Upa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/63Upa.png" alt="enter image description here"></a></p>
  
  <p>How ever, the view is placed at the top-left corner of the screen, instead of being constrained by the two guidelines.<br>
  Any idea why this hapens?</p>
  
  <p>Thanks!  </p>
  
  <pre><code>&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"&gt;
  
  
      &lt;TextView
          android:layout_width="98dp"
          android:layout_height="17dp"
          android:background="#FAFA00"
          app:layout_constraintTop_toTopOf="@+id/guideline"
          app:layout_constraintRight_toLeftOf="@+id/guideline2"
          android:layout_marginEnd="32dp"
          android:layout_marginRight="32dp"
          android:layout_marginTop="64dp"/&gt;
  
      &lt;android.support.constraint.Guideline
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:id="@+id/guideline"
          android:orientation="horizontal"
          tools:layout_editor_absoluteY="247dp"
          tools:layout_editor_absoluteX="0dp"
          app:layout_constraintGuide_end="576dp"/&gt;
  
      &lt;android.support.constraint.Guideline
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:id="@+id/guideline2"
          android:orientation="vertical"
          tools:layout_editor_absoluteY="0dp"
          tools:layout_editor_absoluteX="422dp"
          app:layout_constraintGuide_end="178dp"/&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>