Litho is an Android declarative UI framework and component library used to build user interfaces through a declarative API and immutable state. It functions as an asynchronous layout engine that maps components to a structured view hierarchy to automate view updates.
The framework optimizes rendering performance by computing element positions on background threads to prevent blocking the main UI thread. It further improves efficiency by flattening nested view hierarchies and caching layout results.
The system includes capabilities for state reconciliation, component recycling, and the rendering of 2D graphics and network images. It also provides tools for managing user gestures, tracking rendering timing markers, and visualizing component bounds for debugging.
A specialized plugin is available to integrate the framework with IntelliJ IDEA.