# android.support.v17.leanback

# android.support.v17.leanback

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

Support classes for building Leanback user experiences.

Many apps intended for a 10-foot, or 'Leanback', experience are centered around media and games. Games tend to have custom user interfaces, but media applications may benefit from a common set of user interface components that work well in a Leanback environment. Following is an overview of the Leanback Support Library.

Leanback provides a model-view-presenter approach to building applications:

- The model is primarily provided by the application developer. Leanback imposes very few restrictions on how this model is implemented: anything extending Object in Java is supported.
- The view is handled by the existing[android.view](https://developer.android.com/reference/android/view/package-summary)package. Developers may continue to use their existing knowledge and experience to create visually compelling applications with Leanback.
- The presenter is based on the existing Adapter concept in the Android framework, but has been updated to add more flexibility and composability. In particular, the interface for binding data to views has been separated from the adapter that traverses the data, allowing presenters to be used in more places. See[Presenter](https://developer.android.com/reference/android/support/v17/leanback/widget/Presenter)for more details.

Leanback contains a mixture of higher level building blocks such as Fragments in the[android.support.v17.leanback.app](https://developer.android.com/reference/android/support/v17/leanback/app/package-summary)package. Notable examples are the[BrowseSupportFragment](https://developer.android.com/reference/android/support/v17/leanback/app/BrowseSupportFragment),[DetailsSupportFragment](https://developer.android.com/reference/android/support/v17/leanback/app/DetailsSupportFragment),[PlaybackSupportFragment](https://developer.android.com/reference/android/support/v17/leanback/app/PlaybackSupportFragment)and the[GuidedStepSupportFragment](https://developer.android.com/reference/android/support/v17/leanback/app/GuidedStepSupportFragment). Helper classes are also provided that work with the leanback fragments, for example the[PlaybackTransportControlGlue](https://developer.android.com/reference/android/support/v17/leanback/media/PlaybackTransportControlGlue)and[PlaybackSupportFragmentGlueHost](https://developer.android.com/reference/android/support/v17/leanback/app/PlaybackSupportFragmentGlueHost).

Many lower level building blocks are also provided in the[android.support.v17.leanback.widget](https://developer.android.com/reference/android/support/v17/leanback/widget/package-summary)package. These allow applications to easily incorporate Leanback look and feel while allowing for a high degree of customization. Primary examples include the UI widget[HorizontalGridView](https://developer.android.com/reference/android/support/v17/leanback/widget/HorizontalGridView)and[VerticalGridView](https://developer.android.com/reference/android/support/v17/leanback/widget/VerticalGridView).

## Classes

|---------------------------------------------------------------------------------------------------|---|
| [R](https://developer.android.com/reference/android/support/v17/leanback/R)                       |   |
| [R.anim](https://developer.android.com/reference/android/support/v17/leanback/R.anim)             |   |
| [R.animator](https://developer.android.com/reference/android/support/v17/leanback/R.animator)     |   |
| [R.attr](https://developer.android.com/reference/android/support/v17/leanback/R.attr)             |   |
| [R.bool](https://developer.android.com/reference/android/support/v17/leanback/R.bool)             |   |
| [R.color](https://developer.android.com/reference/android/support/v17/leanback/R.color)           |   |
| [R.dimen](https://developer.android.com/reference/android/support/v17/leanback/R.dimen)           |   |
| [R.drawable](https://developer.android.com/reference/android/support/v17/leanback/R.drawable)     |   |
| [R.fraction](https://developer.android.com/reference/android/support/v17/leanback/R.fraction)     |   |
| [R.id](https://developer.android.com/reference/android/support/v17/leanback/R.id)                 |   |
| [R.integer](https://developer.android.com/reference/android/support/v17/leanback/R.integer)       |   |
| [R.layout](https://developer.android.com/reference/android/support/v17/leanback/R.layout)         |   |
| [R.raw](https://developer.android.com/reference/android/support/v17/leanback/R.raw)               |   |
| [R.string](https://developer.android.com/reference/android/support/v17/leanback/R.string)         |   |
| [R.style](https://developer.android.com/reference/android/support/v17/leanback/R.style)           |   |
| [R.styleable](https://developer.android.com/reference/android/support/v17/leanback/R.styleable)   |   |
| [R.transition](https://developer.android.com/reference/android/support/v17/leanback/R.transition) |   |

-

  ## Classes

  - [R](https://developer.android.com/reference/android/support/v17/leanback/R)
  - [R.anim](https://developer.android.com/reference/android/support/v17/leanback/R.anim)
  - [R.animator](https://developer.android.com/reference/android/support/v17/leanback/R.animator)
  - [R.attr](https://developer.android.com/reference/android/support/v17/leanback/R.attr)
  - [R.bool](https://developer.android.com/reference/android/support/v17/leanback/R.bool)
  - [R.color](https://developer.android.com/reference/android/support/v17/leanback/R.color)
  - [R.dimen](https://developer.android.com/reference/android/support/v17/leanback/R.dimen)
  - [R.drawable](https://developer.android.com/reference/android/support/v17/leanback/R.drawable)
  - [R.fraction](https://developer.android.com/reference/android/support/v17/leanback/R.fraction)
  - [R.id](https://developer.android.com/reference/android/support/v17/leanback/R.id)
  - [R.integer](https://developer.android.com/reference/android/support/v17/leanback/R.integer)
  - [R.layout](https://developer.android.com/reference/android/support/v17/leanback/R.layout)
  - [R.raw](https://developer.android.com/reference/android/support/v17/leanback/R.raw)
  - [R.string](https://developer.android.com/reference/android/support/v17/leanback/R.string)
  - [R.style](https://developer.android.com/reference/android/support/v17/leanback/R.style)
  - [R.styleable](https://developer.android.com/reference/android/support/v17/leanback/R.styleable)
  - [R.transition](https://developer.android.com/reference/android/support/v17/leanback/R.transition)