Layout
Understand how to work with the Android layout in this lesson.
Layout concept
A layout defines the structure of the user interface. Layouts are built via views and view groups.
Views, also sometimes called “widgets,” represent interactable components such as:
TextView
- component to render textEditText
- input field component where user can type textButton
- clickable text component with background
ViewGroups, sometimes also called “layouts,” represent invisible containers that define the position of its children on the screen. While Android SDK contains a number of view groups, which still can be used, Google recently released a new view group called ConstraintLayout
.
Get hands-on with 1400+ tech skills courses.