amzn / firetv-sample-touch-app

This sample Android project demonstrates how to build the main UI of a Fire TV application in order to support both Touch interactions and Remote D-Pad controls.
Apache License 2.0
14 stars 13 forks source link

Better Leanback sample request. #1

Open luiscurini opened 2 years ago

luiscurini commented 2 years ago

Hi,

Sorry for the long post but this isn't a good sample for people that want to port their TV apps to Fire TV auto. Starting from your own guides on how to create a FireTV app, the recommended way to do so is by using the Androidx Leanback Library.

Screenshot 2022-09-19 at 15 28 03

Leanback provides a lot of templates to simplify the creation of TV apps. It basically simplifies navigation and focus between the different elements that can be shown while using the D-pad.

This library wasn't clearly intended to be used with touch controls or mouse, there are a lot of issues that have been reported to google if one tries to run a leanback app on a tablet and many more things that could be added to this sample.

For example:

It'd be nice to have a sample of how to make a leanback app compatible with touch, instead of how to use RecyclerView and add some focusability properties.

Also an emulator for fireTV auto would be nice. An Emulator does the job for now, but there are some specific things of FireTV auto like no connectivity or automotive SDK that are cannot be tested.

We're interested in porting our fireTV auto but we would be fighting against the framework to make it work as intended.

giolaq commented 2 years ago

Hi @luiscurini! Thanks for your post! It contains a lot of good feedback and idea to improve. I will take care of them and update here soon!