randomcat
randomcat

Reputation: 17

TVML / tvOS : Template background?

so i've been working with the Apple TV for a few days. I ran into a little problem with the templates.

For example the catalogTemplate is limited in its usage. I want to change the background. How could i approach this? I know you can change the background-color with rgb blabla , but that is only for an element as it says.

Is there a way to change the color of the standard grey-ish background? Or even load a picture? Or is it possible to make a transparant picture that is layered over the template?

The only way i see it working is, taking the customizable divTemplate and building exactly the same as the catalogTemplate and then change the background. Any help?

Upvotes: 1

Views: 579

Answers (1)

Subash Varadhan
Subash Varadhan

Reputation: 11

You can do that by just adding the below code snippet. Hope it helps someone.

<catalogTemplate>
    <background>
        <img src="http://127.0.0.1:9002/images/black-background.png"/>
    </background>
</catalogTemplate>

Upvotes: 1

Related Questions