Your Digital Media Has Never Looked So Good

 
joetesta
Topic Author
Posts: 790
Joined: Wed Apr 20, 2011 11:48 am

MarkupList example does not include MarkupList

Fri Oct 14, 2016 3:47 pm

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

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!
aspiring
 
EnTerr
** Valued Community Member **
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

Re: MarkupList example does not include MarkupList

Fri Oct 14, 2016 3:55 pm

  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
 
joetesta
Topic Author
Posts: 790
Joined: Wed Apr 20, 2011 11:48 am

Re: MarkupList example does not include MarkupList

Fri Oct 14, 2016 4:03 pm

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
 
User avatar
TheEndless
** Valued Community Member **
Posts: 9231
Joined: Mon Oct 04, 2004 10:15 am
Location: US
Contact:

Re: MarkupList example does not include MarkupList

Mon Oct 17, 2016 1:12 pm

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)
 
joetesta
Topic Author
Posts: 790
Joined: Wed Apr 20, 2011 11:48 am

Re: MarkupList example does not include MarkupList

Mon Oct 17, 2016 7:09 pm

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
 
joetesta
Topic Author
Posts: 790
Joined: Wed Apr 20, 2011 11:48 am

Re: MarkupList example does not include MarkupList

Tue Oct 18, 2016 2:32 pm

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
 
User avatar
TheEndless
** Valued Community Member **
Posts: 9231
Joined: Mon Oct 04, 2004 10:15 am
Location: US
Contact:

Re: MarkupList example does not include MarkupList

Wed Oct 19, 2016 8:25 am

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)
 
joetesta
Topic Author
Posts: 790
Joined: Wed Apr 20, 2011 11:48 am

Re: MarkupList example does not include MarkupList

Wed Oct 19, 2016 10:44 am

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

Who is online

Users browsing this forum: No registered users and 17 guests