Skip to content

Most visited

Recently visited

navigation

android.support.v17.leanback

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 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 for more details.

Leanback contains a mixture of higher level building blocks such as Fragments in the android.support.v17.leanback.app package. Notable examples are the BrowseFragment and the GuidedStepFragment. Helper classes are also provided that work with the leanback fragments, for example the PlaybackControlGlue.

Many lower level building blocks are also provided in the android.support.v17.leanback.widget 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 and VerticalGridView. Helper classes also exist at this level which do not depend on the leanback fragments, for example the TitleHelper.

Classes

R  
R.anim  
R.animator  
R.attr  
R.color  
R.dimen  
R.drawable  
R.fraction  
R.id  
R.integer  
R.layout  
R.raw  
R.string  
R.style  
R.styleable  
R.transition  
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.