Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rsromeo
Channel Surfer

Catalog Screen Poster Borders

 Can anyone give me an idea on how to add borders to my poster images on the home screen?  I would rather do it programmatically then edit the images individually.  These are the posters that display for the main categories on home screen.  I'm using the videoplayer-channel-master sample.  A code sample would be appreciated.  Thanks!
Tags (1)
0 Kudos
1 REPLY 1
joetesta
Roku Guru

Re: Catalog Screen Poster Borders

if you don't care about anything fancy, you can just do a rectangle background, maybe something like this.


<poster id="background" color="0xffffffff" width="110" height="310"/>
<poster id="movieposter" url="myUrl" width="100" height="300" translation="[5,5]"/>

If you need something fancier you can do this by creating a "9-patch" image that gets expanded and used as your background / border.  This can give you gradient/ rounded border.
aspiring
Tags (1)
0 Kudos
Community is Being Upgraded!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

We're sorry for this disruption — we’re excited to share what’s next!