android / codelab-constraint-layout

Constraint Layout Codelab
https://codelabs.developers.google.com/codelabs/constraint-layout/
Apache License 2.0
471 stars 242 forks source link

[Feature Request] Add an alignment attribute for constraints to be used in Styles.xml #54

Open techievbv opened 6 years ago

techievbv commented 6 years ago

Hi Team, I'm enjoying using Constraint Layout. Today, I came across a scenario while using styles.xml in one of my projects while creating styles for constraint layouts. Since there are multiple constraints eg. constraint_lefttoLeftof, constraintEndToEndOf, etc. for aligning a given widget in XML. So a common attribute for defining the above constraints at once would really help, similar to what we have with android:textAppearance attribute which can be used to define textcolor, textsize, textStyle,etc properties at once in styles.xml.