Android UIs er bygget af Views (UI-komponenter som knapper, tekst) arrangeret af ViewGroups/layouts (containere som LinearLayout, ConstraintLayout). Traditionelt defineret i XML layouts, bruger moderne Android i stigende grad Jetpack Compose (deklarativ). At forstå view-systemet er fundamentalt for at bygge UIs.
Views og 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).
