The Startup
Published in

The Startup

Daphne Liu

Sep 7, 2019

9 min read

Making Nested Lists with Android Spannables in Kotlin

How do you display a nested list on Android? That sounds simple. After all, it’s just one button in Microsoft Word right? It’s a little bit more than that. It turned out that implementing a nested list on Android requires using low-level string rendering manipulation.

During my summer internship at Shopify, I rewrote their HTML to Android TextView parser. My goals were to…