34,333
edits
Changes
→ConstraintLayout Chains
Based on the above syntax, the following example creates a horizontal spread chain that starts with button1 and ends with button4. In between these views are button2 and button3 with weighting set to zero for both:
</pre>
int[] chainViews = {button2.getId(), button3.getId()};
float[] chainWeights = {0, 0};