Roku Developer Program

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

Scene Graph: Display different contents in same list

I have a requirement to display different types of contents in single row with horizontal scrolling. The content would be similar to the screenshot linked. Pls suggest how can I achieve this in Roku. Can I make a LayoutGroup as scrollable?

http://www.mmoga.com/images/screenshots ... und-uk.jpg
0 Kudos
7 Replies
TheEndless
Level 7

Re: Scene Graph: Display different contents in same list

I believe you're looking for a fixedLayout MarkupGrid.
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
Dhir_Pratap
Level 7

Re: Scene Graph: Display different contents in same list

I dont think MarkupGrid fits since it asks for single itemComponentName which would be same for all items. But in my case the items have different layout. Can I have MarkupGrid to display different layout for each item?
0 Kudos
TheEndless
Level 7

Re: Scene Graph: Display different contents in same list

"Dhir Pratap" wrote:
I dont think MarkupGrid fits since it asks for single itemComponentName which would be same for all items. But in my case the items have different layout. Can I have MarkupGrid to display different layout for each item?

You'd put the layout logic in the component. If the layouts are significantly different, then you could just write a wrapper component that hosts multiple other component and displays the one that is relevant to the 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
Dhir_Pratap
Level 7

Re: Scene Graph: Display different contents in same list

Endless,

I too thought about the wrapper logic. But it is not suitable when I would have a list with many items say 8-10 items. My problem will be solved if there is something like scrollable layoutgroup.
0 Kudos
24i-sander_l
Level 7

Re: Scene Graph: Display different contents in same list

"Dhir Pratap" wrote:
Endless,

I too thought about the wrapper logic. But it is not suitable when I would have a list with many items say 8-10 items. My problem will be solved if there is something like scrollable layoutgroup.


I also have a need for this. Is this something that the Roku developers will take a look at, or is this something that we're going to have to implement ourselves (by extending etc.)?
0 Kudos
level32
Level 7

Re: Scene Graph: Display different contents in same list

fixedLayout MarkupGrid doesn't scroll hoizontally... or am I missing something?
0 Kudos
philotas
Level 7

Re: Scene Graph: Display different contents in same list

May I ask how you ended up implementing it? thanks!
0 Kudos