question

DeveloperDT avatar image
DeveloperDT asked

How do I modify UIWidgetsSample?

I am just starting building my video player for the Fire TV and I am having difficulty finding where to start modifying the UIWidgetsSample code. I don't know where to start. I am overwhelmed by the 50 different java files. Does anyone know where I can edit the app to add/edit/remove new tiles?
fire tv
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi, com.sample.amazon.uiwidgetssample.SampleAppActivity is the starting point to look at. It set's MainFragment int it's view. Now MainFragment loads list items like "Carousel Example", "Paging Carousel Example" etc with the help of SampleAdapter. Now you need follow the flow and find out the specific example implementation. e.g for Details Page Example -> SampleDetailsActivity/DetailsExtraFragment/DetailsOverviewFragment along with classes of com.sample.amazon.asbuilibrary.details package.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

T. Holyoak avatar image
T. Holyoak answered
We need more examples of how to build video players. In the Roku SDK, they provide several different ones, from very simple to very complex. I was able to take their simple video player example and make a nice looking channel very quickly. The complicated UIWidgetsSample is overwhelming.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Thank you for taking time to share your feedback with us. I will forward it to internal appropriate team. Mean while you can come with the specific queries on your Video Player app.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.