I am a newbie to Android TV app development. I want to develop a app for both TV and Mobile. When I imported a sample TV application, I found a leanback widget for video player ( with play, pause buttons). Can I use the same leanback widget in the mobile app too? If not please let me know the limitations. Thanks in advance.
1 Answers
There is nothing preventing you from adding the Leanback Library to your project, but it probably wouldn't be a good idea to create a single module for both a mobile and TV application.
The widgets provided by the Leanback Library are optimized for large screens and using a remote control. On the other hand, widgets provided by the core framework and the Design Support Library are optimized for smaller screens and touch controls. Therefore, the Leanback Library widgets would likely appear much too large, busy or otherwise unfit on a mobile device.
The core framework does provide the MediaController
view, which is similar to the PlaybackOverlayFragment
(or more specifically, the PlaybackControlsRow
) provided by the Leanback Library, but designed with smaller screens in mind.

- 14,756
- 10
- 70
- 125