Forum Discussion

7 Replies

  • 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
  • TheEndless's avatar
    TheEndless
    Channel Surfer
    "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?
  • TheEndless's avatar
    TheEndless
    Channel Surfer
    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!!!