Android UIs Views (buttons, text जैसे UI widgets) से बनती हैं जिन्हें ViewGroups/layouts (LinearLayout, ConstraintLayout जैसे containers) द्वारा व्यवस्थित किया जाता है। परंपरागत रूप से XML layouts में परिभाषित, आधुनिक Android अधिकाधिक Jetpack Compose (declarative) का उपयोग करता है। view system को समझना UIs बनाने के लिए आधारभूत है।
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).
