Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

NYT Open 10 min read Case study mediumAdept

Building the Crossplay Board

NYT Games built Crossplay's 15×15 multiplayer word board on Android as a GridLayout of 225 tile Views embedded in Jetpack Compose via AndroidView, using native View drag-and-drop with ClipData so tiles move between the board and the tray. Paired overlay views keep picked-up cells rendering as empty slots, and an eight-sector (3×3) detection scheme infers whether a drop near a cell edge was meant for the neighbouring cell. Zoom snaps to exactly 1x or 2x to limit coordinate-translation complexity. Drops are mapped back to grid space by inverting pan and scale, and a custom drag shadow builder sizes the shadow to the current zoom. Staggered tile reveals, Bézier score flights and opponent tile fly-ins help players see what just happened.

Assumes: Android View systemJetpack Compose basicsKotlin

Related posts

  • Flexbox Layout Behavior in Jetpack Compose

    Zalando Engineering mediumAdept

    Most CSS flexbox layout concepts map directly onto Jetpack Compose primitives. Row and Column cover flex direction, the weight() modifier covers flex grow, and Arrangement and Alignment parameters cover justify-content and align-items/align-self. Stretch maps to fillMax* modifiers, and Box with align() handles absolute positioning. Gaps remain: flex wrap relied on the now-deprecated FlowRow/FlowColumn, Compose has no flex shrink (IntrinsicSize.Min can sometimes stand in), and there is no cross-axis space-between, so custom Layout or ConstraintLayout is needed for full flexbox behavior. Zalando is evaluating Compose as a successor to Litho for its backend-driven screens.

  • Vinted is Fully Composed

    Vinted Engineering mediumAdept

    Vinted migrated all 300+ product screens of its 15-year-old Android app from XML Views to Jetpack Compose in 18 months while feature work continued. The work was organized around ProJet, a thin framework that kept Fragments as screen hosts and added a dual-stack design system (Bloom, ~75 components rewritten). It also wired Compose previews into Paparazzi snapshot tests and enforced per-screen test coverage in CI. Key lessons: verifying parity took longer than writing Compose, every migration was guarded by A/B tests or feature flags (100+ tests), interop wrappers hurt scroll performance until screens were fully migrated, and redesigns should never be bundled with migrations. The pure-Compose homepage unexpectedly raised clicks per user by 2.69% and halved presentation code.

  • Adopting Jetpack Compose for Etsy’s Android App

    Etsy Code as Craft mediumAdept

    Etsy adopted Jetpack Compose as its preferred Android UI toolkit through a staged rollout. It started with an internal curriculum and Compose versions of design system components, then moved to an internal-only screen, then user-facing bottom sheets, and finally a three-month rewrite of the Shop screen paired with the Macramé unidirectional-data-flow architecture. An A/B test showed 5% faster initial render and improvements in conversion, add-to-cart and other engagement metrics, and engineers reported less code, better test coverage and value from Compose Previews. Pain points included an alpha-stage third-party library and the different key and item-reuse semantics of LazyRow/LazyColumn compared with RecyclerView.

  • Kotlin Multiplatform in Production: Two Real-World Use Cases from Booking.com

    Booking.com Engineering mediumAdept

    Booking.com applied Kotlin Multiplatform in two production cases: a shared experimentation library replacing drifting Java/Kotlin and Objective-C implementations, and a Compose Multiplatform (Kotlin/JS) web playground that renders the real Android BUI design-system components in a browser. The experimentation library ships as a Gradle dependency on Android and an XCFramework via CocoaPods on iOS, and was validated by running old and new implementations side by side behind experiment flags. During that parallel phase iOS saw roughly +140 ms p90 startup and +2.5 MB download size, but startup improved once the legacy code was removed, which shows migration-time performance data can mislead. iOS engineers were brought on board through an evaluation framework with an explicit exit ramp, and some later became contributors, though Xcode's lack of Kotlin support remains a tooling gap.

  • Fluid layout customization with Splits

    Replit mediumAdept

    Replit's Workspace now supports Splits, a tiling layout where tabs, panes and files from the filetree can be dragged onto five hit areas of any pane (header to merge, or four conical-section quadrants to split), plus maximize and float modes. The design favours predictability, learnability and fluidity: explicit state visualization, a visible 50px detach radius, continuous resizing during drag, and few special cases, such as always placing auto-created webviews in the top-right node. To get fluid drag behaviour in React, the team used jotai to skip rerenders during drag state updates and wrote custom low-level mouse handlers instead of using a tiling library. Layout is stored as a multi-node tree of Splits and PaneGroups, which drives resize behaviour and simple placement heuristics.

The quest for software engineering knowledge.

Look:
Layout: