Menu

One Compose UI for phones and tablets, and a separate one for the TV
📰

One Compose UI for phones and tablets, and a separate one for the TV

DEV Community: android·Yonto Player·2 days ago
#iO5jKDb2
#devtoandroid#devto#dev#phone#screen
Reading 0:00
15s threshold

The first idea everybody has when an Android TV app grows a phone version is to use one UI for both. Compose makes that sound easy: the same composables, a different window size, done. I went the other way on purpose. Yonto Player has two UI layers, one for the television and one for phones and tablets, and they sit on top of one shared set of view models and plain components. This post is about where that line is, why it is there, and what it costs.

If you read the opening post of this series, this is the "UI" part of the map. Everything below is about the shipping Android apps.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.