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
3 answers

Use multiple Orb buttons or other buttons in the leanback's title view

Is it possible to use multiple SearchOrb buttons or another focusable buttons in custom title view of leanback showcase app? The problem is that I can focus only one button... UPDATE: What I've done: There is custom title view class, which contains…
demogorgorn
  • 306
  • 1
  • 4
  • 12
2
votes
2 answers

GridView populating out of order in Leanback

I'm working to add multiple rows per category to a Leanback (Android TV) project that I'm developing. I am however, seeing odd behavior in the way the rows are populated. The code I'm using works, it was from a tutorial,…
RyanInBinary
  • 1,533
  • 3
  • 19
  • 47
2
votes
1 answer

The last element in the row BrowseFragment

I have a Fragment: public class FilmFragment extends BrowseFragment implements LoaderManager.LoaderCallbacks In BrowseFragment I add several rows with items: private void loadRubricsFilms(List mRubrics, List mFilms) { int…
Andrei Anhurets
  • 143
  • 1
  • 13
2
votes
2 answers

Add View overlay on top of ImageCardView

I am working on the TV app and trying to use leanback support library as much as possible. The issue I ran into is that I am trying to add a View on top of the ImageView in ImageCardView. I would like to have my custom View centered on top of that…
Astagron
  • 277
  • 4
  • 13
2
votes
1 answer

GuidedAction setEnable won't change the text color

I'm developing an Android TV application which is using Leanback library. There is a login form with email, password and a login button. I'd like to enable the login button only when the email and password are valid. Here is my…
Bagusflyer
  • 12,675
  • 21
  • 96
  • 179
2
votes
1 answer

Android Leanback library BrowseFragment

I want to use a BrowseFragment inside an activity along with another fragment. The purpose of the other fragment is to have a listview, on each selected item the BrowseFragment will be reloaded with new data. Is this recommended?
nadine87
  • 500
  • 5
  • 17
2
votes
1 answer

Blank Screen when Leaving GuidedStepFragment with Back Button

I have an activity lets call it LeanbackSettingsActivity. I have 3 Fragments in it. 'FirstStepFragment' - Which houses a couple options to go to one of the other 2 fragments: Option1 -> SubFragment1 Option2 -> SubFragment2 All 3 fragments extend…
death2all110
  • 222
  • 3
  • 14
2
votes
0 answers

OnChildViewHolderSelectedListener is called before animation is complete in HorizontalGridView with setSelectedPositionSmooth

I'm using HorizontalGridView in android.support.v17.leanback.widget package. The problem is that OnChildViewHolderSelectedListener is called too early. horizontalGrid.setSelectedPosition(position); …
serg66
  • 1,148
  • 1
  • 17
  • 31
2
votes
1 answer

Android TV - SearchBar focus

I use custom search screen in my tv app, and my problem is that I can't set the focus on SearchBar view when starting the fragment. I've tried the following approaches : mSearchBar.setFocusable(true); mSearchBar.requestFocus(); also tried in…
Mickey Tin
  • 3,408
  • 10
  • 42
  • 71
2
votes
1 answer

Android TV SearchFragment crash when trying to submit query(NPE)

I'm trying to implement search in my TV app, but when I press submit button on search it crashes with the following message : java.lang.NullPointerException: Attempt to invoke virtual method 'int…
Mickey Tin
  • 3,408
  • 10
  • 42
  • 71
2
votes
1 answer

Another Row Layer on BrowseFragment

I wonder if its possible to use a BrowseFragment with another Layer/Level of Rows. something like cat1 - row1 -> item1 -> subrow1 cat2 - row2 -> item1 -> subrow2 and so on. Is there something i can do with a BrowseFragment and the Adapter to get…
Michele
  • 6,126
  • 2
  • 41
  • 45
1
vote
1 answer

How to remove padding in HorizontalGridView on Leanback

I'm trying to remove the inner padding of the Presenter's container on leanback which is HorizontalGridView but I still can't figure it out. I've tried to apply directly the needed padding (0dp) by getting the reference of the HorizontalGridView in…
M A
  • 21
  • 7
1
vote
0 answers

Set scroll limit in android leanback

I'm working on an AndroidTV app, using the Leanback library. How can I slow down the speed at which it scrolls by leaving the button pressed? I want to slow scrolling speed in my leanback project but i don't no how its possible? my code - @Override …
Lovish
  • 31
  • 6
1
vote
0 answers

'MediaPlayer Error Code 4003 extra 0' on Leanback Exoplayer Library

I'm using implementation 'com.google.android.exoplayer:extension-leanback:2.18.2' for VOD playing in Android TV. But facing getting Media error code 4003 in some of device like MI-TV **All device doesn't throw the exception . Checked Samsung TV…
Ovi
  • 362
  • 3
  • 16
1
vote
1 answer

The remote media buttons don't work on Amazon Fire TV OS with MediaSession

I'm creating a video App for the Amazon platform. I'm trying to enable the "rewind and fast forward" controls on the remote. But it seems like the app doesn't see this action. class VideoActivity : FragmentActivity() { private var…
DanMan
  • 692
  • 9
  • 22