Android UIs 由 Views(UI 小部件,如按钮、文本)组成,通过 ViewGroups/layouts(容器,如 LinearLayout、ConstraintLayout)进行排列。传统上在 XML 布局中定义,现代 Android 越来越多地使用 Jetpack Compose(声明式)。理解视图系统是构建 UI 的基础。
Views 和 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).
