Making a Jetpack Compose app feel premium
androidcomposemotionhapticsanimationuxaccessibilitypolish
Justin asked for the Message app to feel "premium" (2026-07-15). A five-agent audit (motion, haptics, visual, performance, delight) produced a roughly 50-item punch list; these are the techniques and traps that came out of it and the UX audit cycles around it.
Systems, not one-offs
- Motion tokens in one file (durations, easings, springs) used everywhere. Compose has no
Spring.StiffnessMediumHigh; use a literal around 2800f for a snappy spring. - Haptics vocabulary: a small set of semantic verbs (tap, confirm, reject, long-press, tick) behind one
rememberAppHaptics()helper, used at about 20 call sites, instead of rawperformHapticFeedbackcalls. - Shared EmptyState and Shimmer components with failure states, so every list degrades the same way.
- A brand font (Inter static TTFs, about 1.7 MB) applied to every Typography slot.
Interactions
- Swipe-to-reply on bubbles: drag toward the center with a
tanhrubber band so it resists and springs back. - Press-scale feedback on tappable surfaces, a crossfade on images, instant fullscreen open with physical zoom.
- Send and receive bubble choreography; a sent bubble in the primary color with a gradient; a brief "Delivered" moment instead of permanent timestamps.
- Scroll-under app bars:
pinnedScrollBehaviorfightsreverseLayoutlists (chat), so animate the bar color fromcanScrollForwardinstead. - Hold the splash until the theme is known to avoid a light-to-dark flash on cold start.
A swipe bug class worth avoiding
Swipe-to-archive with a quick Undo left SwipeToDismissBoxState in the dismissed state while the row stayed composed, leaving a permanent blank "Archive" slot. The redesign made the row swipe a call action that vetoes every dismissal (springs back, opens the dialer), and moved archive and delete to the long-press menu with Undo. A swipe that never dismisses cannot leave ghosts.
Text that must stay on one line
maxLines = 1 does not stop a Compose Text from wrapping when softWrap is on, and in a fixed-height row the second line draws under whatever is below it (a dialed number hid behind the keypad on a real phone). For a value that must fit, turn soft wrap off, step the font size down to a floor until it fits the width, then ellipsize from the side that matters less (for a number being typed, drop leading digits). See Writing a replacement phone (dialer) app for Android.
Accessibility pass
Live regions for sent/received announcements, headings, named custom actions on rows (TalkBack "copy code"), tested at 2x font scale, a theme-level reduced-motion flag, 48 dp touch targets, emoji-only messages at a large size.
Errors and feedback
- Wire every error state to the UI: an error field in the screen state that no composable read meant every send failure was silent.
- Show errors as snackbars; clear before showing so identical back-to-back errors still appear; launch from a scope that survives the effect restarting.
UI sounds
Short synthesized WAVs (see Generating app assets with Python scripts (logos, GIFs, sounds)), gated by a settings toggle and the ringer mode. Ship the toggle with the sounds.
See also
- Message, Justin's Android SMS app (architecture and decisions)
- Designing settings and customization UIs (HIG, NN/g, GNOME patterns)
- Android window insets, the soft keyboard, and edge-to-edge