# Android's ConstraintLayout: Align One View's Edge to Another View's Center

DevFeed: [Android's ConstraintLayout: Align One View's Edge to Another View's Center](<https://devfeed.tech/articles/android-s-constraintlayout-align-one-view-s-edge-to-another-view-s-center-29111.md>)

Original publisher: [Read original article](<https://www.grokkingandroid.com/align-one-views-edge-to-another-views-center-in-constraintlayout/>)

Author: Wolfram Rittmeyer

Published: 2016-08-30T07:20:07Z

Content type: tutorial

Language: en

Sources: [Grokking Android](<https://devfeed.tech/sources/grokking-android.md>)

Topics: [constraintlayout](<https://devfeed.tech/topics/constraintlayout.md>), [Android](<https://devfeed.tech/topics/android.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [constraintlayout](<https://devfeed.tech/tags/constraintlayout.md>), [layout](<https://devfeed.tech/tags/layout.md>)

## AI overview

A tutorial explains how to align one Android view's edge with the center of another in ConstraintLayout when no direct constraint attribute is available. It uses a centered, invisible helper view and aligns the second view to that helper.

## Source excerpt

As you can see from the following excerpt of ConstraintLayout's supported attributes, there is no layout_constraintStart_toCenterX attribute. Thus you cannot directly align the left edge of one view to the center of another view. But ConstraintLayout is flexible enough to get your view aligned to the center of another view without such an attribute. Even [...] Continue Reading "Android's ConstraintLayout: Align One View's Edge to Another View's Center" The post Android's ConstraintLayout: Align One View's Edge to Another View's Center appeared first on Grokking Android.