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
2
votes
2 answers

How to move focus from RowsSupportFragment's row to next layout component?

I am using Android Leanback library for creating TV application. I have a layout which inflates Fragment (which is RowsSupportFragment) and below that there is button. So, when I scroll down to list of items in RowsSupportFragment after reaching to…
2
votes
0 answers

How to move focus to right on android TV in custom title view? nextFocusRight dosen't work

I need to add extra button in title view on android tv app. How to allow to user move focus to extra button? I tied to use nextFocusRight to point the button or mark the button as focusable but without success. I base on project:…
LunaVulpo
  • 3,043
  • 5
  • 30
  • 58
2
votes
0 answers

How to use setHoverCardPresenterSelector in ListRowPresenter leanback

The documentation said: Sets the PresenterSelector used for showing a select object in a hover card. But I found no example of how to use and even what exactly it means. Anyone has extra info? Currently by examining source code I guess it has…
Saleh
  • 1,819
  • 1
  • 17
  • 44
2
votes
2 answers

Find first visible position in leanback GridLayoutManager

I'm trying to find a first visible item position in leanback GridLayoutManager (androidx.leanback.widget.GridLayoutManager). I know how to do it for the regular androidx.recyclerview.widget.GridLayoutManager using…
alexbtr
  • 3,292
  • 2
  • 13
  • 25
2
votes
1 answer

Add custom view to AndroidTV's Leanback RowsSupportFragment?

Is it possible to add some Views above and between the rows in the RowsSupportFragment?
Oleh Liskovych
  • 991
  • 3
  • 13
  • 31
2
votes
2 answers

Android TV Leanback

I am new to Android TV development. I don't know which type of fragment to use. I want two achieve layout similar to above screenshot as jiocinema. Somehow I have achieved it using a two xml fragments inside activity layout. Second fragments…
Uday Ramjiyani
  • 1,407
  • 9
  • 22
2
votes
0 answers

Leanback ListRow Scroll in Center Of Screen

I Have a BrowseFragment (leanback) and add 5 ListRow into adapter's BrowseFragment. My problem is when the list row select this scroll while set in center of screen. I want set this in bottom of screen.
2
votes
2 answers

How to implement transition between two PageRow in leanback BrowseFragment?

I'm using a leanback BrowseFragment to implement a simple android tv app. I have two PageRows which are backed by custom fragments. When I switch between the two in the browse navigation area, the content side of the screen goes blank briefly before…
tmm1
  • 2,025
  • 1
  • 20
  • 35
2
votes
2 answers

How to always show the header side bar in Leanback BrowseFragment?

In Android TV leanback, how to always show the headers which are to the left of the screen in BrowseFragment even when an item in any row is selected? Currently when an item in a row is focused on, the side bar containing the headers is hidden. I…
khateeb
  • 5,265
  • 15
  • 58
  • 114
2
votes
3 answers

Hide PlayerControls when using PlayFragment in AndroidTV

I am using PlayFragment for playing video in AndroidTV. I want to hide the controlls like play/pause/fastforward/progressbar. How can i do it ? if anyone knows then please help. I am using below sample :…
nitin tyagi
  • 456
  • 1
  • 4
  • 19
2
votes
1 answer

Headers fragment item listener

I'm trying to print out in console headers fragment item titles/id's on dpad movement using listener. What am I doing wrong and is there maybe an alternative to accomplish my goal? For instance: Would print out "Category 3" or "...." id. public…
JoshuaMad
  • 577
  • 1
  • 7
  • 20
2
votes
1 answer

Android TV :Shadow Customization

I am working on android tv using leanback. I want visible fading shadow for highlighted item in browse fragment row item.I am getting shadow when i change the below values 10dp
2
votes
3 answers

Check header item focus in BrowseFragment Android TV

Building my first Android TV application and got kinda confused. I'm using androidTV-leanback library. The root problem: I've two functions. One is for getting back to previous fragment (using popBackStackImmediate();) and other one for…
MaaAn13
  • 264
  • 5
  • 24
  • 54
2
votes
2 answers

How to use design support library together with leanback for android TV?

I have custom designs for android Tv app, not all of them match widgets in leanback library. How can I use design support library (for example TabLayout) ? It complains I need to use AppCompat theme. I am aware that google don't recommend to use…
2
votes
1 answer

How to make always visible headers of rows in RowsFragment

Here is what i have now. Simply my RowsFragment is look like this, public static class SampleFragmentB extends RowsFragment { private final ArrayObjectAdapter mRowsAdapter; public SampleFragmentB() { mRowsAdapter = new…
Pumayk26
  • 537
  • 10
  • 28