John W
John W

Reputation: 581

ConstraintLayout vs. android.support.constraint.ConstraintLayout

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

Answers (1)

ralphgabb
ralphgabb

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

Related Questions