The aim of ConstraintLayout is to improve the performance of the applications by removing the nested views with a flat and flexible design. A ConstraintLayout is similar to a RelativeLayout, but with more power. Android Studio templates also include this dependency for new projects. … In Kotlin: // Create constraint layout (maybe you have this already) val buttonLayout = ConstraintLayout(context) buttonLayout.id = View.generateViewId() // Create guideline val centerGuideline = Guideline(context) centerGuideline.id = View.generateViewId() // We want a vertical guideline, 50% across the width val centerParams = … – N Sharma Mar 31 '17 at 15:10. What is the use of layout_constraintGuide_percent? … Constraint Layout Tutorial With Example In Android Studio [Step by Step] Constraint Layout is a ViewGroup (i.e. Guideline is just an invisible item on which you can anchor your views. If set, the widget will have the same size as if using wrap_content, but will be limited by constraints (i.e. The starter app already includes the dependency in build.gradle. When I checked the log, I got this. A view inside the …