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

Google Play Console: Android TV app unsupported on many devices

My application supports only Android TV devices. I've uploaded it to Google Play Developers Console with the following AndroidManifest.xml:
yyunikov
  • 5,719
  • 2
  • 43
  • 78
2
votes
2 answers

Android TV - How to implement endless RecyclerView like with Leanback HorizontalGridView

I couldn't figure out a solution to implement pagination in my Android TV application. I'm using Leanback support library - HorizontalGridView for listing items. HorizontalGridView is extended from RecyclerView but its layout manager…
TaiDang
  • 21
  • 4
2
votes
1 answer

Android TV leanback. How to tell if user is on header navigation from MainActivity?

In the Android TV leanback sample the MainFragment has navigation headers and rows. Is there a way I can tell from the MainActity whether the user is currently on the row headers (navigation on left) or the actual rows of the MainFragment? public…
Sealer_05
  • 5,346
  • 8
  • 35
  • 53
2
votes
1 answer

Android TV: PlaybackControlsRow action long press

I'm trying to implement a fast-forward and rewind actions using PlaybackControlsRow using Leanback library for Android TV, however I can't find any method to detect a long press on these buttons. My current implementation is simple, only does…
yyunikov
  • 5,719
  • 2
  • 43
  • 78
2
votes
1 answer

VerticalGridFragment Endless scroll

I'm creating android tv app but I don't know how to implement endless scroll in Verticalgridfragment, i use ArrayObjectAdapter, can someone help me do that?
tnphi
  • 25
  • 6
2
votes
0 answers

VerticalGridView smoothScrollBy scrolls back once the focus leaves grid item

I have a VerticalGridView which is extracted from RowsSupportFragment of leanback. The VerticalGridView needs to scroll in few cases, for which I am using smoothScrollBy(). The scroll works but VerticalGridView doesn't stay in that state. Once the…
thefrugaldev
  • 1,619
  • 4
  • 18
  • 36
2
votes
0 answers

Customize ListRowPresenter to include inline view below horizontal list

I am trying to customize ListRowPresenter where it should have a horizontal grid view with a detailed view of the selected item below it. I want to inject another Presenter to the ListRowPresenter. I extended ListRowPresenter and the horizontal…
thefrugaldev
  • 1,619
  • 4
  • 18
  • 36
2
votes
3 answers

Upgrading leanback version to 25.0.1 causes guidedStepFragment to crash

My android tv app works fine with these versions: compile 'com.android.support:support-v4:23.2.1' compile 'com.android.support:preference-leanback-v17:23.2.1' compile 'com.android.support:leanback-v17:23.2.1' But once I upgrade them to: compile…
Vpd
  • 235
  • 2
  • 12
2
votes
0 answers

Android tv leanback onboarding customize

I am using google samples for android TV app. How can I customize the "GET STARTED" button on onboarding fragment? For example: button text, color, background etc.
PDM
  • 31
  • 1
  • 5
2
votes
3 answers

Changing the default select color of action buttons in DetailsFragment in Leanback Library

Hi Guys, I want to change the color of default background color that comes on action button selection in details fragment.Any idea how the same can be acheived ?
prit
  • 643
  • 7
  • 21
2
votes
1 answer

Continuous press of button in Playback Overlay fragment in leanback library

I am using playback overlay fragment in my Android TV app for video controls.The problem is I want to know whether the buttons are continuously pressed or not.But in callback I only come to know when its pressed…
prit
  • 643
  • 7
  • 21
2
votes
1 answer

Changing attributes and colors in leanback android

Leanback internally is using some default colors and attr.I want to override it .Is it possible if yes how can do it ? Basically these attribures I want to override attr name="playbackProgressPrimaryColor" format="reference|color" attr…
prit
  • 643
  • 7
  • 21
2
votes
1 answer

Snackbar or Toast AndroidTv

Is Snackbar supported by leanback support library for AndroidTv? I am currently using com.android.support:leanback-v17:23.1.1 and I would like to offer to user an option to continue video playback from where he left the app with a Snackbar with…
parohy
  • 2,070
  • 2
  • 22
  • 38
2
votes
2 answers

Making ImageCardview in browse fragment totally transparent

I want to make my cardview totally transparent in browse fragment .But the problem is this default shadow type effect is coming.I have tried everything but its not going away.Anyway it can be removed. CustomImageCardview cardView = new…
prit
  • 643
  • 7
  • 21
2
votes
1 answer

How can I add a background image to navigation row in browse fragment?

So basically here in the left menu row I want to set a custom image i.e. the whole blue thing in background in menu a custom image has to come.In leanback they give us the api set brand color to set color but nothing to set image .Is there any way…
prit
  • 643
  • 7
  • 21