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
18
votes
5 answers

Scroll to given position in Android Leanback ListRow

I'm using the Google Leanback widgets in an Android TV application. It utilizes a RowsFragment with ListRows in it. What I'm trying to determine is if there is any way to programmatically scroll to a particular object within one of the rows. I've…
ebr
  • 323
  • 3
  • 10
16
votes
2 answers

Limit scrolling speed on ListRow

I was looking at Netflix app and their scrolling behaviour.I would like to do the same but don't know where to start. I know how to override LayoutManager for RecyclerView(though I don't to save that as last resort). Is there easier way to control…
harisk92
  • 1,088
  • 1
  • 14
  • 24
14
votes
1 answer

How to implement paging in Leanback VerticalGridSupportFragment using Paging Library?

We are trying to implement paging in Leanback VerticalGridSupportFragment with Architecture Components Paging Library. Leanback on it's own doesn't have any sort of out-of-box compatibility with Paging Library so we extended it's ObjectAdapter class…
13
votes
5 answers

Leanback VerticalGridFragment remove top spacing

I am using VerticalGridFragment to display items in a grid-like layout I don't need to show search or title and I want the rows to start from top of the screen without any margins. Any help?
nadine87
  • 500
  • 5
  • 17
13
votes
3 answers

android-tv Changing text color and font of browse fragment rows header

How to change text color and font of rows header in browse fragment?. The text not in menu but the text that appears above the rows.
prit
  • 643
  • 7
  • 21
11
votes
3 answers

Android TV Leanback RowsFragment keep focused item at the start

I'm working on a Leanback app and I've implemented the rows and everything via RowsFragment and its all working great. As for now when I go left and right within the items in the row the focused item moves to the middle of the screen and gains the…
Itay Feldman
  • 846
  • 10
  • 23
11
votes
3 answers

Leanback.DetailsFragment not scrolling as expected

I have a details fragment that is using a DetailsOverviewRow and FullWidthDetailsOverviewRowPresenter. When the page first loads the action buttons are selected. When I press down once, focus leaves the buttons and nothing else happens. When I press…
Redshirt
  • 664
  • 7
  • 25
11
votes
3 answers

How to change the background color of the info area on a ImageCardView?

I am trying to change the background color of the infoArea on an ImageCardView in the Android Leanback Library when the card is selected. Currently what I have tried is changing the background in the OnItemViewSelectedListener. This changes the…
brwngrldev
  • 3,664
  • 3
  • 24
  • 45
10
votes
2 answers

AppCompat theme for Leanback

I opened my old Android TV app project and tried to update the dependencies. I then updated the appcompat libraries to 27.1.1. I opened the leanback fragments and Android Studio warned me the BrowseFragment is deprecated and I should use…
Eric Li
  • 143
  • 1
  • 8
10
votes
3 answers

Implementing a File Dialog in Android TV Leanback

I have a dirPath String variable that I want to be able to change to a directory of my choice for an Android TV app. I find the Leanback framework's slideshow-like interface a little cumbersome for subtler actions but I would like to stick to it…
biscuitstack
  • 11,591
  • 1
  • 26
  • 41
10
votes
2 answers

Multiple ListRows for each Header on BrowseFragment - Leanback library

I'm getting started with Leanback support for our app. As per UI requirements I need to add multiple list rows corresponding to each header, it's exactly like what Youtube App does on Android TV. Default ListRowPresenter seems to be rendering only…
CodeFury
  • 1,520
  • 16
  • 29
9
votes
2 answers

Remove SearchOrbView Android TV

How can I remove the searchOrbView in the BrowseFragment of Android TV? I see a way to set the colors (setSearchAffordanceColors), but no way to actually remove the SearchOrbView Since the TitleView is a private member of BrowseFragment (and…
MobileMon
  • 8,341
  • 5
  • 56
  • 75
8
votes
4 answers

How to remove headers from BrowseFragment?

I am working on an android TV app and I am using the leanback library. I want to customize the app layout "BrowseFragment". I want to remove the header view and only display the card list "rows". Is it possible to do that or is there any other…
Billel Boumessaidia
  • 211
  • 1
  • 3
  • 11
8
votes
2 answers

how to always show headers in RowsFragment

I'm trying to create an Android tv application similar to the Youtube application. and I am using the Sofa library to do that. Now the problem comes when I am trying to show the headers for individual items in the RowsFragment even when the…
Mayur Kaul
  • 703
  • 5
  • 12
8
votes
5 answers

android tv -Reloading adapter data

I want to re-load some of the rows data in a browse fragment. Basically I want to reset the adapter data without causing a flash like effect in the browse fragment. Any idea how it can be done? Something like notifyDataSetChanged() in list…
prit
  • 643
  • 7
  • 21
1
2 3
27 28