Material Design 3 & Adaptive Layouts Interview Questions
UI › Material & Nav
What's new in Material 3 compared to Material 2, and how do you theme an app with it in Compose?
What a strong answer covers: Material 3 (Material You) adds dynamic colour from the user's wallpaper, a new tonal colour scheme with roles like primary, secondary, tertiary, surface containers and their 'on' colours, updated components and typography and shape scales. In Compose, wrap the app in MaterialTheme(colorScheme, typography, shapes), choosing dynamicLightColorScheme or dynamicDarkColorScheme on Android 12+ and a brand scheme otherwise.
What is dynamic colour, and when might a brand not want it?
What a strong answer covers: On Android 12+, the system extracts a palette from the wallpaper and apps can build their colour scheme from it, so the app feels personal and matches the OS. Brands with strong colour identity often turn it off or only apply it to some surfaces, so brand colours always show. You can also generate a static scheme from a brand seed colour with Material Theme Builder.
How do you build layouts that adapt to phones, tablets and foldables?
What a strong answer covers: Use window size classes from currentWindowAdaptiveInfo() rather than device type. Material 3 adaptive provides NavigationSuiteScaffold (switches between bottom bar, rail and drawer), ListDetailPaneScaffold and SupportingPaneScaffold. Handle fold postures with WindowManager, avoid locking orientation, and keep state when the window resizes.
How do you handle edge-to-edge display and window insets correctly?
What a strong answer covers: Call enableEdgeToEdge() (edge-to-edge is enforced when targeting Android 15), then apply insets so content isn't hidden under the status bar, navigation bar, display cutout or keyboard. In Compose, Scaffold passes innerPadding; use WindowInsets.safeDrawing, Modifier.windowInsetsPadding, imePadding, and consumeWindowInsets in nested layouts. Lists should draw behind bars but use contentPadding for insets.
How would you build a design system in Compose for a large app with several teams, on top of Material 3 or not?
What a strong answer covers: Wrap MaterialTheme in an app theme that adds custom tokens through CompositionLocals (staticCompositionLocalOf for rarely changing values like extended colours and spacing), and expose components in a shared design system module that wraps Material components with the app's defaults and limited APIs. Use semantic token names, not raw colours; provide previews and screenshot tests (Paparazzi or Roborazzi); document usage; and decide when it's worth leaving Material entirely.