Choosing Mobile Layouts
Question
What layout elements would you use to implement such view (show some design)?
Short interview answer
Start from the screen’s constraints and interaction hierarchy, then choose the smallest layout structure that expresses them. Use a scrolling container for content that can exceed the viewport, reusable list components for repeated data, and platform layout constraints for alignment and adaptation.
Detailed answer
For a product list, use a screen-level container, a top app bar, and a RecyclerView for the repeated product rows rather than manually placing every row. A row can use a constraint-based layout when its image, title, price, and action need relationships that adapt across widths. For a settings screen, a vertically scrolling group of distinct controls can be more appropriate than a list. The point is not to name a fashionable layout: explain which elements repeat, which must scroll, which dimensions are flexible, and how the design remains usable on small and large screens.