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

Is there a ListRowPresenter which uses VerticalGrid instead of HorizontalGridView?

As you know in leanback library there is a ListRowPresenter which presents its items via HorizontalGridView. (see its source here) But can we have a Presenter using VerticalGrid? I want the last row of my BrowseFragment becomes vertically scrollable…
Saleh
  • 1,819
  • 1
  • 17
  • 44
4
votes
1 answer

How do I move grid items on Android TV?

I'm working on a grid interface (using VerticalGridSupportFragment) for Android TV and I'm looking for a way to allow users to move around items in the grid. The idea is that the grid contains a number of TV channels and that the users should be…
Michell Bak
  • 13,182
  • 11
  • 64
  • 121
4
votes
2 answers

java.lang.IllegalStateException because of onResponse code in okhttp async HTTP POST request

I have written a code here: public class Wizard1 extends GuidedStepFragment implements Callback { private boolean sendPhoneNumber(String userPhoneNumber) { OkHttpClient client = new OkHttpClient(); RequestBody requestBody =…
Saleh
  • 1,819
  • 1
  • 17
  • 44
4
votes
1 answer

Leanback create different custom Row Views

I am using the Leanback library and I would like to know how to create multiple custom Row Views. For creating different items in a row you need to extend PresenterSelector I tried doing the same for the ListRowPresenter but couldn't achieve the…
Ultimo_m
  • 4,724
  • 4
  • 38
  • 60
4
votes
1 answer

Android: PlaybackOverlayFragment not working

I am working on an Android TV app and when I have started working on the project code it throws an error for PlaybackOverlayFragment, stating it cannot resolve symbol PlaybackOverlayFragment public class PlaybackOverlayFragment extends…
kartikeykant18
  • 1,737
  • 6
  • 28
  • 42
4
votes
0 answers

MediaPlayerAdapter cannot play video

I am trying to implement a video player for android tv(sdk 26). The default project template uses MediaPlayerGlue for playback control, and can play videos from remote sources (via http). private MediaPlayerGlue…
user9510058
  • 321
  • 1
  • 8
4
votes
4 answers

How to write a custom Leanbacks VerticalGridView in Android TV?

I want to implement a Row from the Details screen of the Leanback library into a customized screen. The row will be the one below. I have already implemented the HorizontalGridView and have managed to get the items to be shown. My layout:…
khateeb
  • 5,265
  • 15
  • 58
  • 114
4
votes
3 answers

How to slow down Android GridView scroll speed on button pressed? (LeanBack)

I'm working on an AndroidTV app, using the Leanback library. I've got a few HorizontalGridView (which is an extension of RecyclerView) working correctly, however, scrolling through them by pressing and holding right|left button makes it scroll…
Francisco Noriega
  • 13,725
  • 11
  • 47
  • 72
4
votes
1 answer

Leanback Sample Activity Crashes

I have added a leanback sample activity from android studio. The activity crashes with following stacktrace. I have not modified the code and I see that all the layouts added by default does have the layout_width and layout_height parameters…
ABS
  • 1,101
  • 10
  • 27
4
votes
3 answers

BrowseFragment next focus issues

I am working with the Android Leanback API, and I am having some headaches with the BrowseFragment. For whatever reason, I can't seem to move focus from the BrowseFragment to an ImageButton that is directly above it. Since this is supposed to be on…
vdwtanner
  • 197
  • 2
  • 14
4
votes
3 answers

Android TV: VerticalGridFragment row items alignment

I'm facing an issue subclassing VerticalGridFragment in my Android TV project: everything works fine but if in one row there are less items then the maximum number of columns, then the items are horizontally aligned starting from the center. The…
fasteque
  • 4,309
  • 8
  • 38
  • 50
4
votes
1 answer

Customizing Android TV Interfaces With LeanBack Support Library

The leanback support library for Android TV projects seems like a good effort to standardize TV experiences. However, I find it a bit too rigid and restricts customization beyond minor ones like color schemes, etc. My question: what is the best,…
kip2
  • 6,473
  • 4
  • 55
  • 72
4
votes
1 answer

Reusing AndroidTV RowsFragment outside BrowseFragment

I'm trying to reuse the RowsFragment provided by AndroidTV Leanback outside of a BrowseFragment, to have a similar row interaction look & feel on a different layout, but I'm getting XML-inflation errors that I haven't been able to debug and…
orbitbot
  • 728
  • 6
  • 18
4
votes
1 answer

Leanback library support for API level 19 Android for TV app?

Is there a Leanback library support for API level 19 of Android? In this link https://developer.android.com/reference/android/support/v17/leanback/package-summary.html Google says it supports API level 21+. So I am not sure if there's a support for…
4
votes
3 answers

Android TV Leanback imagecardview text color

Anybody knows how can i change title textcolor from Leanback ImageCardView ??? I have tried to override leanback style but maybe I haven't found the correct attribute. Thank you so much!!!
Kabuki
  • 147
  • 4
  • 10