Building Performant And Secure Server-Driven User Interfaces
summary
Home feed is implemented as a server-driven layout plus separate content APIs to allow caching and degraded loading; the config removes HTTP method and host to prevent malicious redirects and unintended writes. Defaults live in a JSON asset to avoid large string allocations, layout placeholders render immediately for ~25 rows while per-row APIs replace them, diffs batch every 200 ms, shared RecycledViewPool plus layoutManager recycle flag cuts view inflations by about one third (83 → ~55). State saving uses a custom per-row registry; profiling uses Android memory/CPU profilers, logs, MockWebServer and Espresso; Compose is being explored.
AI-written summary · about
chapters (11)
- 0:00Introduction and speaker background
- 3:26Server-driven UI challenges overview
- 10:24Secure layout API design
- 13:12Android UI implementation approaches
- 14:36Nested RecyclerView challenges
- 16:44Optimizing view inflation and scrolling
- 19:17Saving horizontal scroll positions
- 21:23Custom state restoration framework
- 25:39View snapping and scroll behavior
- 27:03Fixing nested RecyclerView scrolling
- 28:09Talk conclusion and Q&A start
