tv

  
Provides developers with Compose and Material design functionalities in order to write applications for TV
Latest Update Stable Release Release Candidate Beta Release Alpha Release
November 9, 2022 - - - 1.0.0-alpha02

Declaring dependencies

To add dependencies on tv-foundation and tv-material, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.

Add the dependencies for the artifacts you need in the build.gradle file for your app or module:

Groovy

dependencies {
    implementation "androidx.tv:tv-foundation:1.0.0-alpha02"
    implementation "androidx.tv:tv-material:1.0.0-alpha02"
}

Kotlin

dependencies {
    implementation("androidx.tv:tv-foundation:1.0.0-alpha02")
    implementation("androidx.tv:tv-material:1.0.0-alpha02")
}

For more information about dependencies, see Add build dependencies.

Feedback

Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.

Create a new issue

See the Issue Tracker documentation for more information.

There are no release notes for this artifact.

Version 1.0.0

Version 1.0.0-alpha02

November 9, 2022

androidx.tv:tv-foundation:1.0.0-alpha02 and androidx.tv:tv-material:1.0.0-alpha02 are released. Version 1.0.0-alpha02 contains these commits.

Bug Fixes

  • Improved scrolling performance when scrolling through a collection of TvLazyRows/TvLazyColumns by reducing the focus search space.(I723a3)

Version 1.0.0-alpha01

October 5, 2022

androidx.tv:tv-foundation:1.0.0-alpha01 and androidx.tv:tv-material:1.0.0-alpha01 are released. Version 1.0.0-alpha01 contains these commits.

New Features

The first alpha contains early preview implementations of components for TV use cases, including:

  • Adding modifier scrollableWithPivot to allow non-lazy scrolling containers such as Row, Column, Grid to have the scrolling container scroll the content so that the item-in-focus remains at the same position on the TV screen.
  • Adding composables TvLazyRow,TvLazyColumn, TvLazyHorizontalGrid, TvLazyVerticalGrid to have the scrolling container scroll the content so that the item-in-focus remains at the same position on the TV screen.
  • Adding Featured Carousel composable for TV that allows the user to create an auto-scrolling banner carousel.
  • Adding Immersive List composable for TV that allows the user to create an Immersive Row/Column/Grid that changes the background based on the list-item in focus.

Known issues

  • When scrolling container gains focus, the first element does not gain focus by default.
  • Focusing on a TextField does not always open the keyboard or can inhibit focus from moving to other fields.
  • Scrolling vertically in a LazyColumn containing LazyRows has poor performance.