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
6
votes
1 answer

Android TV App - unable to select list item with remote

Currently I am working on Android TV app. I have used Android Lean back support library. I have added one ListView, but I can not able to select any of the item from listView with real device's remote. However, I can able to select item of listView…
Jay Rathod
  • 11,131
  • 6
  • 34
  • 58
6
votes
1 answer

Android Gradle Manifest merger failed

I use the leanback library to develop for Android TV. My app declare the min API to 16 however the leanback as a minimum API of 16. So as the documentation says I declared this in my manifest :
Andros
  • 4,069
  • 1
  • 22
  • 30
5
votes
0 answers

Modification of Leanback Video Player UI

I want to modify the Leanback Video Player UI. There are two things I want to change: The Seekbar in which I want to to be able to put the cue point markers for ads. I want to change the positions of the buttons and the title and subtitle. I tried…
khateeb
  • 5,265
  • 15
  • 58
  • 114
5
votes
1 answer

In Android Tv, How to implement the header(Navigation Drawer) where icon is always visible

I'm working with Android TV for the first time and I'm learning to use Leanback. In my TV App, I need to implement the Header(Navigation Drawer) where the icon should always be visible while collapsing drawer similar to Voot Android TV App…
5
votes
0 answers

Scrollbar thumb visibility in Android Leanback (android tv) app

I'm working on an Android TV project which is using Leanback lib. What I'm trying to achieve is make visible the vertical scrollbar which comes inbuilt in VerticalGridView…
Keval Langalia
  • 1,762
  • 1
  • 16
  • 29
5
votes
1 answer

RecyclerView item focus on Android TV

I'm working on Android TV application where I have a recycler view. How can I set focus on wanted position? (I've already tried scrollToPosition and smoothScroller, but it doesn't work). Thanks in advance!
Laura
  • 402
  • 1
  • 7
  • 24
5
votes
0 answers

Google assistant is not querying the processed string to ContentProvider

I am using android leanback-assistant sample of google to enable google assistant support in my AndroidTV app. But in given code snippet the query() method of SearchContentProvider is not receiving the processed string what I get from…
Satya
  • 149
  • 1
  • 6
5
votes
1 answer

Android TV: VerticalGridFragment shadow dimension and color

I'm working on an Android TV application but I'm not quite happy with the standard shadow rendered by the VerticalGridFragment, I'd like to have it smaller and a bit less darker. I've searched through the code but I didn't find any full working…
5
votes
3 answers

Disable row scaling / expand in BrowseFragment

I have not found any documentation how to disable the row scaling when switching the focus from the Headers to the Fragments in a BrowseFragment. Leanback version 24.2.0 The BrowseFragment has a function enableMainFragmentScaling which solves the…
Philip Giuliani
  • 1,366
  • 3
  • 20
  • 37
5
votes
3 answers

Disabling headers in BrowseFragment

I need to disable headers in BrowseFragment, and add to the ArrayObjectAdapter card. When I do a setHeadersState(HEADERS_DISABLED) application crushes. If I run setHeadersState(HEADERS_DISABLED) method later, for example in onLoadFinished, the…
4
votes
0 answers

Vertical fading in VerticalGridView doesn't work

I am trying to set up a vertical fading edge on my androidx.leanback.widget.VerticalGridView without success. If I replace VeticalGridView with RecyclerView, everything looks ok. Only what I am using in Fragment/Activity is to set adapter on…
alzomins
  • 41
  • 3
4
votes
2 answers

How to set the Fire TV "icon" on home screen?

I have a Fire TV app that will also be released on normal Android TV and one some TVs that have Android that isn't Android TV and possibly on tablets. So I've set my banner for Android TV and that is working fine, the icon works fine on other…
casolorz
  • 8,486
  • 19
  • 93
  • 200
4
votes
0 answers

Android TV: how to partially hide header fragment, hide text and show only icons like netflix tv app

I am using leanback and I want to make headers like Netflix has in its Android tv app like below. when header fragment is opened it shows both text along with icon(first image) and when header is closed they only show icon and highlight it.…
Andrain
  • 872
  • 1
  • 16
  • 43
4
votes
1 answer

AlertDialog like permission dialog in Android TV (Leanback) App

I'm working on an Android TV project which is a leanback project basically. I want to show an alert dialog similar to the permission dialog in android tv apps. see the image. I tried adding normal AlertDialog like this: AlertDialog.Builder…
Keval Langalia
  • 1,762
  • 1
  • 16
  • 29
4
votes
1 answer

Scroll the VerticalGridView or RecyclerView by keeping focus on center element

Scroll the VerticalGridView by keeping focus on center element. I am implementing a verticalgridview with 1 column count and I want to keep the focus on a single item which is in center and move the verticalgridview.I want to set focus on center…
1 2
3
27 28