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

Missing leanback functionality setOnChildLaidOutListener and OnChildLaidOutListener

N.B. It seems this functionality is now available in version 22.1.1 of the leanback support library making this question slightly out of date. However, the question still remains why is the public standard documentation ahead of publicly available…
Timo
  • 3,335
  • 30
  • 25
3
votes
2 answers

androidtv-Leanback-master build errors

[environment] Android Studio 1.1.0 buildToolsVersion "21.1.2" When I build "androidtv-Leanback-master" got this errors: Executing tasks: [clean, :app:compileDebugSources] Configuration on demand is an incubating…
magicy
  • 31
  • 2
2
votes
4 answers

Missing MainActivity Error when running on Android TV Emulator

I created a sample Android TV app for testing purposes. I followed the documentation at https://developer.android.com/training/tv/start/start This is how my manifest file looks like:
karu6500
  • 45
  • 4
2
votes
0 answers

How do i create leanback layout with banner

I want layout something like in this picture custom leanback layout I tried to add custom RowPresenter to the BrowseFragment's Adapter However I my custom view didn't cover full width with "match_parent" attribute, And when focus shifts to items of…
2
votes
0 answers

Firebase test-lab uploaded APK does not specify a main launcher activity

i'm trying to running a test lab in firebase for my TV application, made with Leanback api and i have the following error message: "The uploaded APK does not specify a main launcher activity." The application manifest does specify a…
L.Grillo
  • 960
  • 3
  • 12
  • 26
2
votes
1 answer

How to debug ANR crash logs

How to read the ANR crash logs TraceHashCode: 43fa59baf2962ccc74bdf276b9cdd6fc21e9bb35 ----- pid 22452 at 2021-07-15 22:58:56 ----- Cmd line: com.testserver.test.tv.android.app ABI: arm Build type: optimized Zygote loaded classes=4015 post…
Pavan Tiwari
  • 3,077
  • 3
  • 31
  • 71
2
votes
0 answers

RowsSupportFragment onItemSelected() callback gets called by default when page loads for the first time

RowsSupportFragment onItemSelected() callback gets called by default when page loads for the first time, even though the item is not selected and focus is on some other element. I have a ui where there is button and a RowsSupportFragment at bottom…
AndroidDev
  • 1,485
  • 2
  • 18
  • 33
2
votes
0 answers

How to customise progress bar ui in VideoSupportFragment of android leanback component?

I am building an android app for tv, where the ui requirement of video playback is completely different from the default one offered by VideoSupportFragment. Specifically I want to change the look and feel of progress bar of playback. Not just…
AndroidDev
  • 1,485
  • 2
  • 18
  • 33
2
votes
1 answer

How to set view to be focusable in android tv app?

I am trying to create a custom layout for my android tv app rather than using fragments from leanback components. I have read in developer docs that in order to highlight the selected view, we need to set focusable and focusableInTouchMode to…
AndroidDev
  • 1,485
  • 2
  • 18
  • 33
2
votes
0 answers

How to get ViewHolder of specific item in android leanback component?

I am using android leanback component ArrayObjectAdapter with custom Presenter to create a row of elements. I want to get reference to one of the item in that row to do some ui operation. Is there any way to do this ? private fun…
AndroidDev
  • 1,485
  • 2
  • 18
  • 33
2
votes
0 answers

java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position in androidx.leanback.widget.HorizontalGridView

I am facing this crash in HorizontalGridView (RecyclerView) in leanback component Device: Android TV Android Version: 9 Logic: My Adapter extends ListAdapter to which I will submit the list of data, which will internally handles the notification to…
2
votes
0 answers

Amazon FireTV get name of device

im currently developing an android app for the firetv cube. Im a bit stuck in how to get the amazon fire tv device name. I mean the "calling" name of the device like "Exeu's FireTV Cube". Simply the name which you can configure in your device…
Exeu
  • 21
  • 1
2
votes
1 answer

app launcher icon is not showing in home screen of android tv

When I install my app in my tv, I can run it and do everything but I do not know why app icon not showing on the home screen of the tv. Mainly its not displaying in 1080p Tv's Here is my AndroidManifest:
Make it Simple
  • 1,832
  • 5
  • 32
  • 57
2
votes
1 answer

Change padding on RowsSupportFragment

I tried to combine leanback with xml, but I had some problem - padding the leanback row is different from padding other elements. How can I change padding to RowsSupportFragment? In xml
Tiarait
  • 175
  • 1
  • 12
2
votes
2 answers

Keep focus on first item of the list and scroll the List

I am developing an Android TV application and showing the items on the list. When I scroll the list focus moving from the current item to the next, I want the keep focus constantly on the first item and scroll the whole list from the same selected…