One of the interesting thing we can build on top of #ConstraintLayout
are virtual helper objects -- elements that will be present in the UI builder to help you create the UI layout you want, but do not have to appear later on in the view hierarchy: their role is limited to creating the right constraints.
We have many, many ideas of helpers we will expose in future versions, but we did include at least one in the current alpha2: Guidelines.
(on that note, do remember to update your Android Studio 2.2 preview from the canary, and to constraintlayout alpha 2 -- new versions appear regularly! http://tools.android.com/download/studio/canary/latest
You can create horizontal or vertical guidelines on the root ConstraintLayout element, and those can be positioned either relatively to one side (left/top/right/bottom) on a fixed distance, or as a percentage of the side they belong to. Once created, simply attach elements to them, and that's all you have to do.
As often with ConstraintLayout, there are more than one way to position elements. Guidelines are not a necessity, but simply provides another way of expressing your layout intent, and can makes things a lot more understandable -- remember, what we really are setting up in a ConstraintLayout is the flow of relations between all the elements. #Android #androiddev #ConstraintLayout #AndroidStudio