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

Change background image when recommendation card selected

I am building app for TV and trying to change background image on home screen when recommendation card is selected. I've found code samples where image is loaded locally with content provider: public static class…
Astagron
  • 277
  • 4
  • 13
0
votes
1 answer

Android Leanback library HorizontalGridView scrollToPosition doesn't work

I'm implementing an Android TV app and I'm using HorizontalGridView from the Leanback library. I have a custom layout. I have to scroll the HorizontalGridView to specific position, after activity is created, but unfortunately the…
0
votes
1 answer

Modify Android Leanback Library

I need to modify the android support v17 leanback library to make my Android TV app be more inline with requirements. I have read that if the library is available to download I can import it as a module to make a local copy. Unfortunately I cannot…
Sealer_05
  • 5,346
  • 8
  • 35
  • 53
0
votes
1 answer

How to change CardView elevation in BrowseFragment

In my Android TV app, I'm subclassing BrowseFragment and adding rows of CardViews using ArrayObjectAdapter. The selection state of the cards is by default indicated by some kind of elevation effect, making the card bigger whenever it is selected. Is…
Micky
  • 5,578
  • 7
  • 31
  • 55
0
votes
1 answer

Android TV app uiautomator test

We are trying to utilize uiautomator testing for your TV applications. But the TV widgets (cards etc) does not respond to click event. My question is that how can we make sure we navigate (with DPAD keys) to the correct UI widget and 'click' it with…
Robin
  • 10,052
  • 6
  • 31
  • 52
0
votes
0 answers

How to display Now Playing Card on Android TV

I am using MediaPlayer for playing audio in my android application. There are some troubles with displaying the Now Playing Card in Recommendation row on Leanback Launcher. I have extended MediaSessionCompat.Callback in the player. What am I doing…
Stepan Mazokha
  • 459
  • 1
  • 5
  • 22
0
votes
1 answer

Resume activity from a android tv recommendation

I have some troubles with the management of recommendations (notifications) on an Android TV with the Leanback Launcher. I use the google sample here to implement my own : https://github.com/googlesamples/androidtv-Leanback Expected result : I'm on…
0
votes
1 answer

android app installs but won't open on android 4.4

I have built an app using the leanback library leanback version 17:23.1.1. Here is the story so far: 1) the app runs on all my android devices with 5.0 or higher. 2) the app runs in the emulator with Android 5.0 or higher AND android 4.4 as the…
ironmantis7x
  • 807
  • 2
  • 23
  • 58
0
votes
0 answers

GuidedStepFragment is added but can't control?

My activity already added a fragment. When I add a GuidedStepFragment into my activity : ex: GuidedStepFragment.add(getFragmentManager(), new GuidedStepActivity.FirstStepFragment()); Although GuidedStepFragment'UI show in the front screen, but I…
0
votes
0 answers

Can we align Rows vertically in Browse Fragment?

Can we align rows of browse fragment vertically?Or do we have anything that we can use in browse fragment so that we have different columns(having multiple rows) for each category? So as per my current implementation I am creating multiple browse…
Developer
  • 81
  • 5
0
votes
0 answers

Updating adapter while scrolling causes NullPointerException in GridLayoutManager.getOpticalLeft()

I'm using leanback library: HorizontalGridView + ArrayObjectAdapter. I know there are many other similar questions. The solution is to notify the adapter that there were changes. But in my case even if I do notify the adapter, I still get this error…
serg66
  • 1,148
  • 1
  • 17
  • 31
0
votes
1 answer

Developing app for Amazon Fire TV Stick?

I want to develop application for the Amazon fire stick but I am not aware of it. I am unclear about some points Can we create a standalone app that can run into the Amazon fire stick without need to Android phone or tablet? If we can create the…
Dharmendra
  • 33,296
  • 22
  • 86
  • 129
0
votes
1 answer

get result from leanback activity

I have a Main activity activity and this starts the leanbackactivity with startactivityforresult. The problem is onActivityResult never gets called. Code from leanbackactivity: Intent data = getIntent(); data.putExtra("url",…
Duna
  • 1,564
  • 1
  • 16
  • 36
0
votes
1 answer

How to implement a longClickListener on BrowseFragment (Android Leanback Library)

I am using the browsefragment of the Leanback Library in one oy my projects. simple button press on an item is detected by setting up the browsefragements setOnItemViewClickedListener. i want to detect a longpress on an item. any…
Alex Fillips
  • 391
  • 1
  • 3
  • 8
0
votes
1 answer

Android leanback library ListRowPresenter whole row expand

I'm trying to make the whole row expand when selected in leanback library carousel. Effect that I want : I'm working off the android TV sample code. I have tried setExpandedRowHeight(..); and setRowHeight(..); /** * Created by sylversphere on…
Dreamingwhale
  • 433
  • 6
  • 22
1 2 3
27
28