googlesamples/leanback-homescreen-channels

Name: leanback-homescreen-channels

Owner: Google Samples

Description: A sample that demonstrates how to integrate with Android TV's home screen

Created: 2017-10-16 14:32:30.0

Updated: 2018-05-23 15:55:27.0

Pushed: 2018-05-23 15:55:26.0

Homepage: https://developer.android.com/training/tv/discovery/recommendations.html

Size: 7366

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Android TV Home Screen Channel / Programs Sample

This sample is designed to run on an Android TV device that run Android Oreo (API 26) or higher. It demonstrates how to interact with the home screen to add channels and programs to increase user engagement.

Introduction

This sample shows how to use TvContractCompat to add channels and programs to the home screen. For more information about how to integrate with the home screen, read the following:

Dependencies

To integrate with the home screen, you will need to add a new dependency, support-tv-provider. The leanback support library is also required for your app's UI and playback.

If you use Android Studio as recommended, the following dependencies will automatically be installed by Gradle.

ementation 'com.android.support:leanback-v17:26.x.x'
ementation 'com.android.support:support-tv-provider:26.x.x'
Getting Started
clone https://github.com/googlesamples/leanback-homescreen-channels.git

Need more information about getting started with Android TV? Check the official docs.

Screenshots

Screenshot

Screenshot

Screenshot

Screenshot

Support

If you need additional help, our community might be able to help.

Contributing

We love contributions! :smile: Please follow the steps in the CONTRIBUTING guide to get started. If you found a bug, please file it here.

License

Licensed under the Apache 2.0 license. See the LICENSE file for details.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.