Android UIs are built from Views (UI widgets like buttons, text) arranged by ViewGroups/layouts (containers like LinearLayout, ConstraintLayout). Traditionally defined in XML layouts, modern Android increasingly uses Jetpack Compose (declarative). Understanding the view system is foundational for building UIs.
Views and ViewGroups
VIEW → a single UI element (TextView, Button, ImageView, EditText, etc.)
VIEWGROUP → a container that holds/arranges child views (LinearLayout, ConstraintLayout,
FrameLayout, RecyclerView, etc.) — layouts ARE ViewGroups
→ UIs are a TREE of views inside view groups (composition).
