working of constraintlayout in android code example
Example 1: constraintlayout androidx
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
Example 2: androidx.constraintlayout.widget.ConstraintLayout
implementation 'androidx.constraintlayout:constraintlayout:1.1.2'