We're building ReClaim , a minimalist Android launcher that's on Google Play . One of the newest things we've built for its Home screen (not in the Play build yet) is a habit mark: a small round button with an icon. You tap it when you've done the thing, like a walk or some reading, and a ring fills in. Up to four habits can sit on Home. Each one has a schedule and a target, plus a streak you see when you open it.
A habit tracker sounds like a weekend project. The storage really was tiny. Everything else took longer: what counts as a "day", when a streak breaks, what "three times a week" means, and how a tap feels instant when the write hasn't landed yet. This post walks through our code for each of those, and one design choice that has a cost I didn't see at first: every streak is recomputed from raw taps, so editing a habit rewrites its past.
Stack: Kotlin, Jetpack Compose, Hilt, Room, coroutines, minSdk 26 , targetSdk 36 .…