# Guideline

**Guideline** nesnesi, **ConstraintLayout** konteynerine göre konumlandırılmış yatay ve dikey kılavuzlar oluşturmanıza olanak sağlar. Bileşenler daha sonra bu kılavuzlara uyarak konumlandırılabilir. Aynı yapı Material Design’daki **Keylines** ile aynıdır. (<https://material.io/design/layout/spacing-methods.html#spacing>)

**Örnek:**

```markup
<android.support.constraint.Guideline
    android:id="@+id/guidelineLeft"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    app:layout_constraintGuide_begin="30dp" />
<android.support.constraint.Guideline
    android:id="@+id/guidelineTop"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    app:layout_constraintGuide_begin="30dp" />
<Button
    android:id="@+id/button"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Button 1"
    app:layout_constraintEnd_toStartOf="@+id/button2"
    app:layout_constraintStart_toStartOf="@+id/guidelineLeft"
    app:layout_constraintTop_toTopOf="@+id/guidelineTop" />
<Button
    android:id="@+id/button2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Button 2"
    app:layout_constraintTop_toTopOf="@+id/guidelineTop"
    app:layout_constraintStart_toEndOf="@+id/button" />
```

![](https://2480504041-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtZdUsjshN6FQY_meiV%2F-Lt_9ben5t8sweVTpwN7%2F-Lt_9s9gNh3UHzeGUvIY%2FScreen%20Shot%202019-11-13%20at%2017.29.16.png?alt=media\&token=8f75ed95-05b8-451b-9ad6-35829fdfd227)
