# LazySurface: 2D Layout Library for Compose Multiplatform

Innovative 2D layout solution for foldable devices

- **Source:** [Developing Android Apps](https://brifing.si/source/aa76b6c1-28c1-49f8-967e-b6a0eeadfa86)
- **Published:** 2026-07-14
- **Topic:** [Software & Engineering](https://brifing.si/c/engineering)
- **Original article:** <https://www.reddit.com/r/androiddev/comments/1uw5u6v/lazysurface_a_lazy_2dplane_layout_for_compose/>
- **On Brifing:** https://brifing.si/s/5da1e487-aaa1-4170-8341-09b553010616

## Innovative 2D Layout Approach

LazySurface is a 2D layout library developed for Compose Multiplatform. It works by defining relationships and constraints between items. Designed specifically for applications requiring 2D layouts like games and maps. With the rise of foldable devices, such layouts are becoming increasingly important.

## Technical Foundation and Inspiration

The library was inspired by Jetpack Compose's LazyRow and LazyColumn. It efficiently manages item recycling and measurement policies using the LazyLayout architecture. The developer created this solution after an 8-month process of research and code analysis.

## Pivot-Based Positioning

The system operates on the principle of positioning relative to a fixed point (Pivot). Items outside boundaries can be detected based on visible content and connected elements. This approach allows determining the bounding box for each frame.

## Versatile Scrolling Support

Unlike traditional LazyColumn and LazyRow, LazySurface offers flexible 2D plane scrolling. It enables precise positioning instead of indeterminate offsets. This allows developers to create more complex layouts and fully utilize foldable devices' potential.

## Open Source and Accessibility

The project is fully open source and available on GitHub. The library, open to community contributions, aims to enrich the Compose Multiplatform ecosystem. It offers new possibilities especially for mobile app developers.

## Future Mobile Experiences

LazySurface opens a new era in mobile app design with the rise of foldable and large-screen devices. By enabling more efficient use of 2D layouts on mobile, it has significant potential to enhance user experiences.

## Sources covering this story

- https://www.reddit.com/r/androiddev/comments/1uw5u6v/lazysurface_a_lazy_2dplane_layout_for_compose/ — 

---

_Summary written by Brifing from the original reporting. Copyright in the original article belongs to its publisher; read the full piece at the link above._
