Reputation: 581
Just starting out with constraint layouts and hopefully a simple question.
In an XML layout file, is there any difference between using
<ConstraintLayout ...
vs.
<android.support.constraint.ConstraintLayout ...
Is one of them preferred over the other?
Upvotes: 0
Views: 130
Reputation: 10538
I would suggest to use the 2nd one.
<android.support.constraint.ConstraintLayout
Please refer to the Android documentation for more information
Note: ConstraintLayout is available as a support library that you can use on Android systems starting with API level 9 (Gingerbread). As such, we are planning on enriching its API and capabilities over time. This documentation will reflect those changes.
Upvotes: 1