Most AndroidX libraries can be used with Android TV. Use
Android architecture components, such as
ViewModel
for managing
lifecycle-aware UI data and Room
to
integrate with local SQLite databases, just the same as you would for mobile.
Use Compose to build Android TV apps with modern responsive UIs. Combined with
ViewModel
, Compose lets you to share the majority of your application's
logic between form factors.
For details, see Use Jetpack Compose on Android TV.