Questions tagged [leanback]

The Leanback Support Library provides APIs, resources, and widgets for building Android TV apps.

The Leanback Support Library provides , , and for building apps. For questions related to developing interactive television apps in general please use the tag.

Useful Links:

412 questions
3
votes
0 answers

How to display markers for ads in Leanback ExoPlayer seekbar?

I want to display markers for ads in Exoplayer using the Leanback Adapter and Glue. I am using android.support.v17.leanback.media.PlaybackTransportControlGlue and android.support.v17.leanback.media.PlayerAdapter. See the classes…
khateeb
  • 5,265
  • 15
  • 58
  • 114
3
votes
2 answers

Leanback DetailFragment FullWidthDetailsOverviewRowPresenter customization

I want to customize the FullWidthDetailsOverviewRowPresenter in the Leanback DetailFragment. Three things I want to accomplish are: Getting the Actions from top to below of the overview. Reducing the height of the overview so that it the related…
khateeb
  • 5,265
  • 15
  • 58
  • 114
3
votes
1 answer

Focus move between two fragments

Hello friends I am developing an Tv application in which screen have two visible fragments. Let my first FragmentA have RecyclerView with Grid orientation and same in FragmentB. And FragmentA have focus now i want to move to fragmentB by using DPAD…
3
votes
2 answers

Leanback focus problems

Hello guys I'm working on application and my layout structure is as following : RelativeLayout: CompoundView: CompoundView: RelativeLayout: Button Button RecyclerView BrowseFragment: …
harisk92
  • 1,088
  • 1
  • 14
  • 24
3
votes
0 answers

Custom List Row in Android leanback browser fragment

in last 4 days i search through internet and android leanback library code to find my problem's solution, but i can not figure it out. in browser fragment of android leanback library it's explained how to have ListRowPresenter with two rows or more.…
destrat18
  • 197
  • 2
  • 14
3
votes
1 answer

Customizing playback controls in a Leanback app

I have a pretty basic task: implementing HLS video streaming using Leanback framework and Exoplayer. I use a simple single-fragment layout:
SqueezyMo
  • 1,606
  • 2
  • 21
  • 34
3
votes
2 answers

How to detect if it's Android TV OR Android TV Box?

I developed an app for Android TV's and released. I want to know how many of the users are directly running the app on their TV's and how many using TV boxes. Is there a way to detect whether my app is running on Android TV OR Android TV Box…
Santhosh
  • 4,956
  • 12
  • 62
  • 90
3
votes
1 answer

Add button to BrowseFragment

I am developing an Android TV app using Leanback support library. I need to display a button in the top right corner (below the badge) of BrowseFragment. (as on below image) Here is the layout code
Bishan
  • 15,211
  • 52
  • 164
  • 258
3
votes
0 answers

Position of row fragment being reset to 0

In my app I have a number of row fragments on the homepage all contained in a BrowseFragment. The top row is a carousel, so I extended ArrayObjectAdapter so that it sets the start index to Integer.MAX_VALUE/2 and returns items based on the modulous…
vdwtanner
  • 197
  • 2
  • 14
3
votes
1 answer

Android TV published app not visible in sony bravia android tv

I have developed an app using Leanback Library. The app is working fine on Sony Android TV. But when I have published the app successfully on play store then when i am searching app on my Sony Android TV store it is showing No Results Found message.…
Jay Rathod
  • 11,131
  • 6
  • 34
  • 58
3
votes
2 answers

Leanback for Android TV : Unsetting Video Title Increases Spacing between Rows

The PlaybackOverlayFragment of the sample app uses the PlaybackControlsGlue to set up playback controls based on the data model. This is the look when using the standard glue: My problem is that I don't want the title/subtitle text to appear above…
kip2
  • 6,473
  • 4
  • 55
  • 72
3
votes
1 answer

leanback library : How to draw focus for items in a VerticalGridView or HorizontalGridView?

Im playing around the leanback library , i can see for most of the RowsFragment in the leanback package, they are using either HorizontalGridView or VerticalGridView, but when I create a new HorizontalGridView, is not drawing the focus, which means…
Qing
  • 1,401
  • 2
  • 21
  • 41
3
votes
1 answer

android leanback search fragment

I am using Android Search Fragment in Android TV app.There is a specific requirement where on focus on voice search icon I want the color to become blue not just scale .Sharing the snapshot of present behavior. Thanks in advance.
prit
  • 643
  • 7
  • 21
3
votes
2 answers

Change SearchView default icon for BrowseFragment for Android TV applications?

For Leanback BrowseFragment, by default there is a search view to the left of the screen. Is it a way to change the default icon of that SearchOrbView or hide it. https://cdn-images-1.medium.com/max/800/1*oIFbcdjYrIqxU55-B23tjA.gif
Duna
  • 1,564
  • 1
  • 16
  • 36
3
votes
1 answer

Adding ProgressBar to DetailsOverviewRow on Android TV

I'm trying to create a slightly modified version of the android.support.v17.leanback.widget.DetailsOverviewRow for an Android TV app. The layout I'm trying to accomplish is roughly the same as Google's default version, but with the addition of a…