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

I’m looking for a way to have a horizontally laid out MarkupList with layoutDirection=“horizontal” but that gives

=================================================================
Warnings occurred while creating XML component ChannelSurferFilter
– Tried to set nonexistent field “layoutDirection” of a “MarkupList” node
The example MarkupList code on that page does include layoutDirection=“horizontal” but that’s for LayoutGroup that doesn’t accept focus;

=================================================================
Warning occurred while setting a field of an RoSGNode
– Tried to set nonexistent field “focus” of a “LayoutGroup” node
I appreciate any suggestions - thanks!

  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

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

“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.

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.

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?

MarkupGrid uses “horizFocusAnimationStyle” (from ArrayGrid) for controlling scroll behavior on a single row grid.

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!!!