Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
amnon
Level 7

How to configure a grid screen like NPR?

How do I create a grid screen like NPR?
http://sdrv.ms/1cX2BkW

I tried this:
screen = createObject("roGridScreen")
screen.setDescriptionVisible(false)
screen.SetGridStyle("two-row-flat-landscape-custom")

The description callout still shows and I'm not seeing item titles (I'm assuming that these are titles in the content metadata).

Thanks in advance for your help!
0 Kudos
6 Replies
Highlighted
TheEndless
Level 7

Re: How to configure a grid screen like NPR?

You need to call SetDescriptionVisible later in your code (at least after SetGridStyle, possibly later). As for the data under the thumbnails, that's defined by the ShortDescriptionLine1 and ShortDescriptionLine2 metadata attributes on your content.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
Highlighted
amnon
Level 7

Re: How to configure a grid screen like NPR?

"TheEndless" wrote:
You need to call SetDescriptionVisible later in your code (at least after SetGridStyle, possibly later). As for the data under the thumbnails, that's defined by the ShortDescriptionLine1 and ShortDescriptionLine2 metadata attributes on your content.

Thanks, that worked!

One more Q - if I pick "zoom-to-fill" as the display mode, portrait photos seem to get tiled (i.e. appear more than once).

Is that a known bug?

Thanks!
0 Kudos
Highlighted
TheEndless
Level 7

Re: How to configure a grid screen like NPR?

"amnon" wrote:
"TheEndless" wrote:
You need to call SetDescriptionVisible later in your code (at least after SetGridStyle, possibly later). As for the data under the thumbnails, that's defined by the ShortDescriptionLine1 and ShortDescriptionLine2 metadata attributes on your content.

Thanks, that worked!

One more Q - if I pick "zoom-to-fill" as the display mode, portrait photos seem to get tiled (i.e. appear more than once).

Is that a known bug?

Thanks!

I don't know if it's known or not, but it's been around forever (I know it's been reported, but I don't know if Roku has ever acknowledged it). Several of the different grid styles flake out if you use certain display modes.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
Highlighted
amnon
Level 7

Re: How to configure a grid screen like NPR?

What's the theme attribute of the grid ShortDescriptionLine1 and ShortDescriptionLine2 in "two-row-flat-landscape-custom" grid style?

Thanks!
0 Kudos
Highlighted
squirreltown
Level 9

Re: How to configure a grid screen like NPR?

There isn't one.
Kinetics Screensavers
0 Kudos
Highlighted
TheEndless
Level 7

Re: How to configure a grid screen like NPR?

"amnon" wrote:
What's the theme attribute of the grid ShortDescriptionLine1 and ShortDescriptionLine2 in "two-row-flat-landscape-custom" grid style?

Thanks!
"squirreltown" wrote:
There isn't one.

Correct... you're stuck with gray for now, I'm afraid...
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos