Dhir_Pratap
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2016
03:24 AM
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
http://www.mmoga.com/images/screenshots ... und-uk.jpg
7 REPLIES 7
TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2016
09:32 AM
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)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Dhir_Pratap
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2016
01:12 AM
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?
TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2016
08:24 AM
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)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Dhir_Pratap
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2016
01:53 AM
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.
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.
24i-sander_l
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2016
02:37 AM
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.)?
level32
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2016
12:01 PM
Re: Scene Graph: Display different contents in same list
fixedLayout MarkupGrid doesn't scroll hoizontally... or am I missing something?
philotas
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2016
10:08 AM
Re: Scene Graph: Display different contents in same list
May I ask how you ended up implementing it? thanks!