Questions tagged [android-tv]

Android TV is a smart TV platform running the Android operating system. It provides an interactive television experience by overlaying user interface on top of existing television programming. Use android-tv for questions specifically on the TV platform and not for general Android questions.

Android TV is a smart TV platform running the Android operating system. It provides an interactive television experience by overlaying user interface on top of existing television programming.

1380 questions
10
votes
2 answers

Play Store support for Android TV on Android Studio

I use Android Studio and I need an emulator with Play Store support to test the development. However, I could not see the emulator with Play Store support in the Device Manager section in Android Studio. Do I have to buy a physical Android TV…
10
votes
0 answers

Use of Constraint Layout for developing TV android Apps

I want to know why android developer documentation is recommending to use view groups such as Relative Layout or Linear Layout to arrange views for developing TV Android Apps and not the current standard i.e. Constraint Layout. Is there any specific…
10
votes
2 answers

AppCompat theme for Leanback

I opened my old Android TV app project and tried to update the dependencies. I then updated the appcompat libraries to 27.1.1. I opened the leanback fragments and Android Studio warned me the BrowseFragment is deprecated and I should use…
Eric Li
  • 143
  • 1
  • 8
10
votes
3 answers

Implementing a File Dialog in Android TV Leanback

I have a dirPath String variable that I want to be able to change to a directory of my choice for an Android TV app. I find the Leanback framework's slideshow-like interface a little cumbersome for subtler actions but I would like to stick to it…
biscuitstack
  • 11,591
  • 1
  • 26
  • 41
10
votes
1 answer

Android TV: unfocused image contains black transparent background?

My Android TV app fetches images from a server and displays it on the home screen. The problem is, all the images that are not focused, i.e. not selected contains a black transparent background. The only image that does not contain a transparent…
Pangu
  • 3,721
  • 11
  • 53
  • 120
10
votes
2 answers

Multiple ListRows for each Header on BrowseFragment - Leanback library

I'm getting started with Leanback support for our app. As per UI requirements I need to add multiple list rows corresponding to each header, it's exactly like what Youtube App does on Android TV. Default ListRowPresenter seems to be rendering only…
CodeFury
  • 1,520
  • 16
  • 29
10
votes
2 answers

Strange Android RecyclerView (GridLayoutManager) focus behavior

I have a RecyclerView with GridLayoutManager, with 2 columns per row. Because the develop is for Android TV so that I need focus to navigate. It's ok if I'm using down key to navigate to any visible items. For example, Item 1 -> Item 3 -> Item 5…
Bagusflyer
  • 12,675
  • 21
  • 96
  • 179
9
votes
3 answers

How to implement scrolling in RecyclerView on Android TV?

I have an application which I need adapt for Android TV. This application contains horizontal RecyclerView and it doesn't scroll when I press D-pad buttons on remote control. I found this solution, but it crashes. Here is the…
BArtWell
  • 4,176
  • 10
  • 63
  • 106
9
votes
4 answers

How to keep the last item's focus of RecyclerView when navigating to the end of the list?

I used a RecyclerView with HORIZONTAL direction in my TV development which controlled by a D-pad to navigate the list from the left to right. the last item of the RecyclerView always lost focus when navigating to the right-most of the list. So how…
Xiaozou
  • 1,655
  • 1
  • 15
  • 29
9
votes
2 answers

Remove SearchOrbView Android TV

How can I remove the searchOrbView in the BrowseFragment of Android TV? I see a way to set the colors (setSearchAffordanceColors), but no way to actually remove the SearchOrbView Since the TitleView is a private member of BrowseFragment (and…
MobileMon
  • 8,341
  • 5
  • 56
  • 75
9
votes
2 answers

Is it possible to make Android TV app work on Amazon Fire TV?

Since the Android TV leanback library is apparently compatible with SDK level 17, which is what the Amazon Fire TV uses, I set the minimum SDK level on my Android TV app and installed it using ADB on my Fire TV. It actually works without any…
atariguy
  • 407
  • 4
  • 11
9
votes
3 answers

Which resource qualifier should I use to support 1080p, 720p android TV? - Android

In order to define different dimension values for 1080p and 720p android TV, I need to decide which qualifier I should use. When I'm trying to use something like values-sw1080p,values-sw720p, it doesn't work. The values in dimes.xml doesn't affect…
Bagusflyer
  • 12,675
  • 21
  • 96
  • 179
8
votes
0 answers

How to get current focused FlatList Item

I am creating an androidTV application and trying to get the current FlatList focused item using TouchableNativeFeedback. I have tried using "onFocus" to change a state when the FlatList item has focus but when the application rendered it seemed to…
Dude2019
  • 95
  • 9
8
votes
4 answers

How to remove headers from BrowseFragment?

I am working on an android TV app and I am using the leanback library. I want to customize the app layout "BrowseFragment". I want to remove the header view and only display the card list "rows". Is it possible to do that or is there any other…
Billel Boumessaidia
  • 211
  • 1
  • 3
  • 11
8
votes
1 answer

In Android 8.0 above. Is there any way to know there is pip mode on in the system

In Android Oreo. The activity can go into pip mode and go back to launcher. https://developer.android.com/guide/topics/ui/picture-in-picture.html Now I am the launcher. Is there any way to know currently there is a pip windows displayed on the…
Shu Zhang
  • 521
  • 12
  • 20
1 2
3
91 92