From the course: Android Development Essential Training: The User Interface with Kotlin

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Manage view positions with constraints

Manage view positions with constraints - Android Tutorial

From the course: Android Development Essential Training: The User Interface with Kotlin

Start my 1-month free trial

Manage view positions with constraints

- [Instructor] The ConstraintLayout ViewGroup container was introduced in early 2017 after a lengthy public Beta. Since then it's replaced many of the older ViewGroup components such as RelativeLayout. It has improved performance, better memory usage, and it's highly reliable. Unlike the Legacy ViewGroup components, ConstraintLayout is delivered in its own library, and it's imported into a project with a dependency declaration in the module's Gradle file. Under Gradle scripts I'll look at build.gradle, and I'll show you constraintlayout right here. I'm using AndroidX packages, so the package is androidx.constraintlayout These warning indicators tell me that there's a more recent version of each of these components available. So for each of those lines I'll place the cursor, and then I'll use an intention action with option + return on MAC or alt + enter on Windows, and I'll change to whatever is the most recent version. I'll do that for all four places where I see a warning. Then up…

Contents