Android UIs Views (UI widgets ਜਿਵੇਂ buttons, text) ਤੋਂ ਬਣਾਏ ਜਾਂਦੇ ਹਨ ਜੋ ViewGroups/layouts (containers ਜਿਵੇਂ LinearLayout, ConstraintLayout) ਦੁਆਰਾ ਵਿਵਸਥਿਤ ਹੁੰਦੇ ਹਨ। ਰਵਾਇਤੀ ਤੌਰ 'ਤੇ 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).
