Layouts & Views
Design UIs with XML layouts. Use ConstraintLayout, LinearLayout, and common views like TextView, Button, ImageView, and EditText.
Building UIs with XML
Android UIs are defined in XML layout files stored in res/layout/. The layout describes the structure and appearance of your screen — which views are shown and where.
Your Kotlin code then inflates this layout and interacts with the views at runtime.
Common View Types
The most frequently used View widgets:
TextView— displays textEditText— text input fieldButton— clickable buttonImageView— displays an imageCheckBox— toggle on/offSwitch— on/off toggle (Material)