Build: BoxLayoutScreen
This screen demonstrates a simple box layout using LinearLayout in Android Kotlin. It arranges three colored boxes vertically with equal spacing.
Target UI
┌───────────────────────────┐ │ Box Layout │ ├───────────────────────────┤ │ ┌───────────────┐ │ │ │ Red Box │ │ │ └───────────────┘ │ │ │ │ ┌───────────────┐ │ │ │ Green Box │ │ │ └───────────────┘ │ │ │ │ ┌───────────────┐ │ │ │ Blue Box │ │ │ └───────────────┘ │ └───────────────────────────┘
Use a vertical LinearLayout as the container
Add three Views representing boxes with background colors: red, green, and blue
Each box should have equal height and fill the width of the screen with some margin
Add spacing between the boxes
Use Kotlin and Android XML layout