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.

View and ViewGroup components

View and ViewGroup components - Android Tutorial

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

Start my 1-month free trial

View and ViewGroup components

- [Speaker] Every XML layout file contains a set of components that are interpreted as instructions for placing visual objects on the screen. These are XML files but they're interpreted and executed in the background as Java Code. Most of the XML elements describe instances of classes. It's important to know which classes they are so you can look up their capabilities in the API documentation. In this XML layout file, notice that some of these declarations have complete qualified class and package names. That's because these components aren't apart of the core android SDK, instead they're delivered in a separate library called the Material Design Library. When you create a new project, this package might start with "andriod.support" or it might start with "androidx", depending on how you create the project. But they refer to the same components. The "androidx" packages are newer, in my primary XML layout file, the coordinator layout is the root element. It manages all the visual…

Contents