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: 
joetesta
Level 10

MarkupList example does not include MarkupList

It seems like the Markup List XML Component Example on this page is incorrect, in that it does not actually include a MarkupList
https://sdkdocs.roku.com/display/sdkdoc/MarkupList[/url:1nezyeui]

I'm looking for a way to have a hor...









aspiring
0 Kudos
7 Replies
EnTerr
Level 8

Re: MarkupList example does not include MarkupList


  1. That seems like doco bug - indeed wrong example on the MarkupList page, pls log it somewhere

  2. I doubt very much that MarkupList can be layout horizontally - but in truth, i have no clue

  3. Is the example from here any help? https://sdkdocs.roku.com/display/sdkdoc/Lists+and+Grids+Markup#ListsandGridsMarkup-MarkupListMarkup
0 Kudos
joetesta
Level 10

Re: MarkupList example does not include MarkupList

Thanks EnTerr - seems that the MarkupGrid Example XML suffers from the same lack of the component it's supposed to be an example of 
https://sdkdocs.roku.com/display/sdkdoc/MarkupGrid

I'll play around with that example and sure there's a way to achieve it, but seems it would've been most convenient if we could display a MarkupList horizontally in addition to vertically, since then the focus and navigation would be handled out of the box.

Update, maybe there's a way to do it using RowList with only a single row in the vertical direction.  I'll do some experimenting.
cheers
aspiring
0 Kudos
TheEndless
Level 7

Re: MarkupList example does not include MarkupList

"joetesta" wrote:
I'm looking for a way to have a horizontally laid out MarkupList with layoutDirection="horizontal

Try a MarkupGrid with numRows set to 1.  That should scroll horizontally.
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
joetesta
Level 10

Re: MarkupList example does not include MarkupList

Thanks TheEndless!  I got it working with Rowlist but looks like you're right, and MarkupGrid is slightly less complex, might be worth switching it up.  thanks again.
aspiring
0 Kudos
joetesta
Level 10

Re: MarkupList example does not include MarkupList

Aaaaargh - well, I'm stuck.
MarkupGrid does not provide animations like RowList does ("rowFocusAnimationStyle").
And RowList does not seem to allow variable width elements; "rowItemSize" applies to the whole row.

So is there some combination that provides a scrolling horizontal row with variable width elements?
aspiring
0 Kudos
TheEndless
Level 7

Re: MarkupList example does not include MarkupList

MarkupGrid uses "horizFocusAnimationStyle" (from ArrayGrid) for controlling scroll behavior on a single row grid.
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
joetesta
Level 10

Re: MarkupList example does not include MarkupList

Awesome, I don't know why I didn't realize that before, given that link on the doc page "Extends: ArrayGrid"
Thanks TheEndless, maybe what I want is possible with existing components after all!
Thank you!!!
aspiring
0 Kudos