ConstraintLayout Android — привязать представление к 2 рекомендациям

Используя ConstraintLayout, я пытаюсь привязать представление к 2 guidelines , как вы можете видеть на чертеже на приложенном скриншоте.

введите здесь описание изображения

Однако вид помещается в верхний левый угол экрана, а не ограничивается двумя направляющими.
Есть идеи, почему это происходит?

Спасибо!

<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">


    <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"/>

    <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"/>

    <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"/>

</android.support.constraint.ConstraintLayout>

person Presen    schedule 08.11.2016    source источник
comment
Вы можете сообщить об этой ошибке здесь: tools.android.com/feedback   -  person Fabricio    schedule 08.11.2016


Ответы (1)


Была ошибка, связанная с рекомендациями, которая была исправлена ​​в бета-версии 4 — попробуйте обновить, это должно решить вашу проблему.

person Nicolas Roard    schedule 17.11.2016