Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
amnon
Visitor

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 6
TheEndless
Channel Surfer

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
amnon
Visitor

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
TheEndless
Channel Surfer

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
amnon
Visitor

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
squirreltown
Roku Guru

Re: How to configure a grid screen like NPR?

There isn't one.
Kinetics Screensavers
0 Kudos
TheEndless
Channel Surfer

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.