Skip to content

[QUESTION] How do we use this with Android TV remote? #141

@under3415

Description

@under3415

Hi
I am trying to enable my app to run on Android TV. I followed this guide. I made the changes to the AndroidManifest.xml and wrapped MaterialApp with Shortcuts widget to enable navigation. That's all, didn't do the YouTube player bits.

In my app I have some SwitchListTile widgets and some NumberPicker widgets. SwitchListTile widgets work with the TV D-pad controller out of the box. I can navigate to them using arrow buttons and if I press the action button I can toggle on/off value.

But I cannot control NumberPicker using D-Pad. I tried wrapping it in Focus widget, and I think it does get focus, although cannot see anything, but I've noticed that I have to click twice to get to the next item. But even when it does have focus, I cannot do anything using D-Pad.

Can this be done or does widget need to be changed to support this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions