Custom View Articles

Building a Custom RecyclerView LayoutManager: Layout, Caching, Scroll, and Animation

An end-to-end guide to writing a custom RecyclerView LayoutManager: the Fill algorithm, three-tier cache, scroll state machine, dead-reckoning, and animation tradeoffs.

Android TextView Internals: Complex Text Layout Scenarios, Part 4

Part 4 of the Android TextView measurement and layout series covers RTL/BiDi text, emoji, rich text spans, performance, and debugging.

Android TextView Internals: Text Measurement and Layout

A deep dive into how Android TextView measures and lays out text, from Layout selection and line breaking to font metrics, RTL text, emoji, spans, and performance.